Monotone-Parent: b0de250ad5fa2e4afb2daba52426ee8123e26ef1

Monotone-Revision: 6ab1e30417c6d736d1e01fa379f1ef179d460ba7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-04-12T13:57:41
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-04-12 13:57:41 +00:00
parent 820714fb17
commit 141933f9eb
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2011-04-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Mailer/SOGoDraftObject.m
(-bodyPartForAttachmentWithName:): don't choose "quoted-printable"
if the mimetype is anything else than "text/plain" or "text/html",
to avoid issues with filenames attached with a wrong mime type.
2011-04-12 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.m

View File

@ -1141,7 +1141,7 @@ static NSString *userAgent = nil;
if ((s = [self contentTypeForAttachmentWithName:_name]) != nil) {
[map setObject:s forKey: @"content-type"];
if ([s hasPrefix: @"text/"])
if ([s hasPrefix: @"text/plain"] || [s hasPrefix: @"text/html"])
attachAsString = YES;
else if ([s hasPrefix: @"message/rfc822"])
is7bit = YES;