Fix for bug #2965
parent
b5023eeb24
commit
70cd24e111
1
NEWS
1
NEWS
|
@ -13,6 +13,7 @@ Bug fixes
|
||||||
- fixed error with new user default sorting value for the mailer module (#2952)
|
- fixed error with new user default sorting value for the mailer module (#2952)
|
||||||
- fixed ActiveSync PING command flooding the server (#2940)
|
- fixed ActiveSync PING command flooding the server (#2940)
|
||||||
- fixed many interop issues with Windows Phones over ActiveSync
|
- fixed many interop issues with Windows Phones over ActiveSync
|
||||||
|
- fixed automatic return receipts crash when not in the recepient list (#2965)
|
||||||
|
|
||||||
2.2.9a (2014-09-29)
|
2.2.9a (2014-09-29)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
|
@ -315,6 +315,15 @@ static NSString *mailETag = nil;
|
||||||
[matchingIdentityEMail retain];
|
[matchingIdentityEMail retain];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!matchingIdentityEMail)
|
||||||
|
{
|
||||||
|
// This can happen if we receive the message because we are
|
||||||
|
// in the list of bcc. In this case, we take the first
|
||||||
|
// identity associated with the account.
|
||||||
|
matchingIdentityEMail = [[[[[self clientObject] mailAccountFolder] identities] lastObject] objectForKey: @"email"];
|
||||||
|
RETAIN(matchingIdentityEMail);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return matchingIdentityEMail;
|
return matchingIdentityEMail;
|
||||||
|
@ -487,13 +496,18 @@ static NSString *mailETag = nil;
|
||||||
|
|
||||||
- (NGHashMap *) _receiptMessageHeaderTo: (NSString *) email
|
- (NGHashMap *) _receiptMessageHeaderTo: (NSString *) email
|
||||||
{
|
{
|
||||||
|
NSString *subject, *from;
|
||||||
NGMutableHashMap *map;
|
NGMutableHashMap *map;
|
||||||
NSString *subject;
|
|
||||||
|
|
||||||
map = [[NGMutableHashMap alloc] initWithCapacity: 1];
|
map = [[NGMutableHashMap alloc] initWithCapacity: 1];
|
||||||
[map autorelease];
|
[map autorelease];
|
||||||
[map setObject: email forKey: @"to"];
|
[map setObject: email forKey: @"to"];
|
||||||
[map setObject: [self _matchingIdentityEMail] forKey: @"from"];
|
|
||||||
|
from = [self _matchingIdentityEMail];
|
||||||
|
|
||||||
|
if (from)
|
||||||
|
[map setObject: from forKey: @"from"];
|
||||||
|
|
||||||
[map setObject: @"multipart/report; report-type=disposition-notification"
|
[map setObject: @"multipart/report; report-type=disposition-notification"
|
||||||
forKey: @"content-type"];
|
forKey: @"content-type"];
|
||||||
subject = [NSString stringWithFormat:
|
subject = [NSString stringWithFormat:
|
||||||
|
|
Loading…
Reference in New Issue