From 0e9bb809d1433cc7a15c31311c76b4f8f2026fbc Mon Sep 17 00:00:00 2001 From: "jshin%mailaps.org" Date: Fri, 1 Apr 2005 05:25:05 +0000 Subject: [PATCH] bug 229399 : RFC 2047 Subject and From header fields are misinterpreted if charset used for the header is different from charset used for the message body : r=bienvenu, sr=mscott --- mailnews/compose/src/nsMsgCompose.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mailnews/compose/src/nsMsgCompose.cpp b/mailnews/compose/src/nsMsgCompose.cpp index 3007d14db31..08b9a67a391 100644 --- a/mailnews/compose/src/nsMsgCompose.cpp +++ b/mailnews/compose/src/nsMsgCompose.cpp @@ -1509,8 +1509,12 @@ nsresult nsMsgCompose::CreateMessage(const char * originalMsgURI, if (!mailCharset.IsEmpty()) { charset = mailCharset; - charsetOverride = PR_TRUE; + charsetOverride = mCharsetOverride; } +#ifdef DEBUG_jungshik + printf ("charset=%s\n", charset.get()); + printf ("charsetOverride=%d\n", charsetOverride); +#endif // although the charset in which to _send_ the message might change, // the original message will be parsed for quoting using the charset it is