From 7a2b18090cba575d69dea3e42d582c76c63b9dbf Mon Sep 17 00:00:00 2001 From: "kaie%kuix.de" Date: Tue, 31 Jan 2006 21:07:51 +0000 Subject: [PATCH] bug 256851, Mozilla creates/verifies invalid S/MIME signatures on 8bit mails because of RFC Violation (need to convert to Quoted Printable first) r+a=mscott, sr=bienvenu git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@188603 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/compose/src/nsMsgSend.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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;