Monotone-Parent: 56874b8e1d2260289bbdde17c8dbc01a15f354e7

Monotone-Revision: d3036531db8d8c0e298e79e7bba85298dba88acd

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-09-17T22:39:40
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-09-17 22:39:40 +00:00
parent cf911feea7
commit 1d455ff2b1
3 changed files with 13 additions and 2 deletions
+10
View File
@@ -1,3 +1,13 @@
2008-09-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailPartViewers/UIxMailPartViewer.m ([UIxMailPartViewer
-decodedFlatContent]): same as below...
* SoObjects/Mailer/NSData+Mail.m ([NSData
-bodyDataFromEncoding:encoding]): invoke
"dataByDecodingQuotedPrintableTransferEncoding" on the NSData
instance to avoid decoding "_" chars.
2008-09-17 Francis Lachapelle <flachapelle@inverse.ca>
* UI/MailerUI/UIxMailAccountActions.m ([WOResponse
+1 -1
View File
@@ -44,7 +44,7 @@
else if ([realEncoding isEqualToString: @"base64"])
decodedData = [self dataByDecodingBase64];
else if ([realEncoding isEqualToString: @"quoted-printable"])
decodedData = [self dataByDecodingQuotedPrintable];
decodedData = [self dataByDecodingQuotedPrintableTransferEncoding];
else
{
decodedData = nil;
+2 -1
View File
@@ -112,6 +112,7 @@
return flatContent;
}
#warning we should use NSData+Mail's bodyDataFromEncoding: instead
- (NSData *) decodedFlatContent
{
NSString *enc;
@@ -128,7 +129,7 @@
return [[self flatContent] dataByDecodingBase64];
if ([enc isEqualToString:@"quoted-printable"])
return [[self flatContent] dataByDecodingQuotedPrintable];
return [[self flatContent] dataByDecodingQuotedPrintableTransferEncoding];
[self errorWithFormat:@"unsupported MIME encoding: %@", enc];