From 7b8c6aa0ffe62a7fc9bc6266ec7cece781d55053 Mon Sep 17 00:00:00 2001 From: "masayuki%d-toybox.com" Date: Wed, 5 Apr 2006 23:07:33 +0000 Subject: [PATCH] Bug 314637 Search Messages can't find some words in ISO-2022-JP messages. patch by Masatoshi Kimura (emk) r=jshin, sr=bienvenu, a=jay git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@193641 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp b/mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp index e95bdb0fc6e..5580cd16738 100644 --- a/mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp +++ b/mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp @@ -820,9 +820,9 @@ nsresult nsMsgSearchTerm::MatchBody (nsIMsgSearchScopeTerm *scope, PRUint32 offs // since we don't have a MIME parser handy, and we want to err on the // side of too many hits rather than not enough, we'll assume in that // general direction. Blech. ### FIX ME - // bug fix #88935: for stateful csids like JIS, we don't want to decode - // quoted printable since it contains '='. - PRBool isQuotedPrintable = /*!(mail_csid & STATEFUL) && */ + // bug fix #314637: for stateful charsets like ISO-2022-JP, we don't + // want to decode quoted printable since it contains '='. + PRBool isQuotedPrintable = !nsMsgI18Nstateful_charset(folderCharset) && (PL_strchr (m_value.string, '=') == nsnull); while (!endOfFile && result == boolContinueLoop)