Update of /cvsroot/mahogany/M/src/mail
In directory usw-pr-cvs1:/tmp/cvs-serv2549/src/mail
Modified Files:
MailFolderCC.cpp
Log Message:
fixed bug with determining the header encoding introduced by the double-decoding
change recently
Index: MailFolderCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolderCC.cpp,v
retrieving revision 1.606
retrieving revision 1.607
diff -b -u -2 -r1.606 -r1.607
--- MailFolderCC.cpp 24 Apr 2002 17:46:37 -0000 1.606
+++ MailFolderCC.cpp 26 Apr 2002 10:55:38 -0000 1.607
@@ -1514,4 +1514,7 @@
String MailFolder::DecodeHeader(const String& in, wxFontEncoding *pEncoding)
{
+ if ( pEncoding )
+ *pEncoding = wxFONTENCODING_SYSTEM;
+
// some brain dead mailer encode the already encoded headers so to obtain
// the real header we keep decoding it until it stabilizes
@@ -1520,7 +1523,11 @@
for ( ;; )
{
- header = DecodeHeaderOnce(headerOrig, pEncoding);
+ wxFontEncoding encoding;
+ header = DecodeHeaderOnce(headerOrig, &encoding);
if ( header == headerOrig )
break;
+
+ if ( pEncoding )
+ *pEncoding = encoding;
headerOrig = header;
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates