From 05e69474ee9ddb92b888378ef58563b0dd666ad3 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Wed, 19 Nov 2003 16:52:18 +0000 Subject: [PATCH] Bug #224138 --> can't send S/MIME Encrypted messages because we aren't adding a CRLF to the last message line. patch by ch sr=mscott a=asa --- mailnews/extensions/smime/src/nsMsgComposeSecure.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mailnews/extensions/smime/src/nsMsgComposeSecure.cpp b/mailnews/extensions/smime/src/nsMsgComposeSecure.cpp index 7fc556871ade..f8ed09e7cdce 100644 --- a/mailnews/extensions/smime/src/nsMsgComposeSecure.cpp +++ b/mailnews/extensions/smime/src/nsMsgComposeSecure.cpp @@ -867,6 +867,9 @@ nsresult nsMsgComposeSecure::MimeFinishEncryption (PRBool aSign, nsIMsgSendRepor rv = MIME_EncoderDestroy(mCryptoEncoderData, PR_FALSE); mCryptoEncoderData = 0; + if (PRInt32(mStream->write(CRLF, 2)) < 2) + rv = NS_ERROR_FAILURE; + FAIL: return rv; }