mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-26 22:05:23 +00:00
see changelog
Monotone-Parent: 1011e8e7cab7e718b62aa03f637fa6a37349d95c Monotone-Revision: 06aa9d65ffbfa422bd62686e09571834da68af2f Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2007-11-25T17:26:56 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -92,6 +92,8 @@
|
||||
if ((count = [_types count]) == 0)
|
||||
return NSNotFound;
|
||||
|
||||
if ((i = [_types indexOfObject:@"text/calendar"]) != NSNotFound)
|
||||
return i;
|
||||
if ((i = [_types indexOfObject:@"text/html"]) != NSNotFound)
|
||||
return i;
|
||||
if ((i = [_types indexOfObject:@"text/plain"]) != NSNotFound)
|
||||
|
||||
@@ -183,10 +183,9 @@
|
||||
s = [NSString stringWithData: content usingEncodingNamed: charset];
|
||||
if (![s length])
|
||||
{
|
||||
/* latin 1 is used as a 8bit fallback charset... but does this
|
||||
encoding accept any byte from 0 to 255? */
|
||||
/* UTF-8 is used as a 8bit fallback charset... */
|
||||
s = [[NSString alloc] initWithData: content
|
||||
encoding: NSISOLatin1StringEncoding];
|
||||
encoding: NSUTF8StringEncoding];
|
||||
[s autorelease];
|
||||
}
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
if ([signature length])
|
||||
{
|
||||
[newDraftMessage
|
||||
setText: [NSString stringWithFormat: @"\r\n--\r\n%@", signature]];
|
||||
setText: [NSString stringWithFormat: @"\n-- \n%@", signature]];
|
||||
save = YES;
|
||||
}
|
||||
if (save)
|
||||
|
||||
Reference in New Issue
Block a user