diff --git a/mozilla/mailnews/compose/src/nsMsgSend.cpp b/mozilla/mailnews/compose/src/nsMsgSend.cpp index 23992bf0779..de543dc54e7 100644 --- a/mozilla/mailnews/compose/src/nsMsgSend.cpp +++ b/mozilla/mailnews/compose/src/nsMsgSend.cpp @@ -3214,6 +3214,15 @@ nsMsgComposeAndSend::Init( rv = pPrefBranch->GetIntPref(PREF_MAIL_MESSAGE_WARNING_SIZE, (PRInt32 *) &mMessageWarningSize); } + if (!strictly_mime) + { + nsresult rv = NS_OK; + nsCOMPtr secureCompose; + secureCompose = do_CreateInstance(NS_MSGCOMPOSESECURE_CONTRACTID, &rv); + if (NS_SUCCEEDED(rv) && secureCompose) + secureCompose->RequiresCryptoEncapsulation(aUserIdentity, fields, &strictly_mime); + } + nsMsgMIMESetConformToStandard(strictly_mime); mime_use_quoted_printable_p = strictly_mime;