MailDAV Fixes

Monotone-Parent: 43ac2f2aa838034f00194247d4c245926ed738de
Monotone-Revision: a133bab8f4c9ee8ea78123618542c4a2ecdc2fd4

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-10-01T21:55:29
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert committed 2009-10-01 21:55:29 +00:00
1 parent f1ffcac389
commit a72a55de90
3 files changed
+6 -8

No files matched your search

+3 -3
View File
@@ -1262,7 +1262,6 @@ static BOOL debugSoParts = NO;
reason: @"Can't overwrite messages"];
else
response = [folder appendMessage: [rq content]
inContext: _ctx
usingId: &imap4id];
}
@@ -1310,7 +1309,6 @@ static BOOL debugSoParts = NO;
- (NSString *) _emailAddressesFrom: (NSArray *) enveloppeAddresses
{
//voir spec
NSMutableArray *addresses;
NSString *rc;
NGImap4EnvelopeAddress *address;
@@ -1404,7 +1402,9 @@ static BOOL debugSoParts = NO;
range = [value rangeOfString: @"received:"
options: NSCaseInsensitiveSearch
range: NSMakeRange (10, [value length]-11)];
if (range.length)
if (range.length
&& range.location < [value length]
&& range.length < [value length])
{
// We want to keep the first part
range.length = range.location;