mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-07 16:03:20 +00:00
(fix) sent messages cannot be replied to their BCC email addresses (fixes #4460)
This commit is contained in:
@@ -752,25 +752,33 @@ static NSString *userAgent = nil;
|
||||
[_info removeObjectForKey: @"cc"];
|
||||
}
|
||||
|
||||
/* CC processing if we reply-to-all: - we add all 'to' and 'cc' fields */
|
||||
/* CC processing if we reply-to-all: - we add all 'to', 'cc' and 'bcc' fields */
|
||||
if (_replyToAll)
|
||||
{
|
||||
to = [[NSMutableArray alloc] init];
|
||||
to = [NSMutableArray array];
|
||||
|
||||
[addrs setArray: [_envelope to]];
|
||||
[self _purgeRecipients: allRecipients
|
||||
fromAddresses: addrs];
|
||||
fromAddresses: addrs];
|
||||
[self _addEMailsOfAddresses: addrs toArray: to];
|
||||
[self _addRecipients: addrs toArray: allRecipients];
|
||||
|
||||
[addrs setArray: [_envelope cc]];
|
||||
[self _purgeRecipients: allRecipients
|
||||
fromAddresses: addrs];
|
||||
fromAddresses: addrs];
|
||||
[self _addEMailsOfAddresses: addrs toArray: to];
|
||||
|
||||
[self _addRecipients: addrs toArray: allRecipients];
|
||||
[_info setObject: to forKey: @"cc"];
|
||||
|
||||
[to release];
|
||||
if ([[_envelope bcc] count])
|
||||
{
|
||||
to = [NSMutableArray array];
|
||||
[addrs setArray: [_envelope bcc]];
|
||||
[self _purgeRecipients: allRecipients
|
||||
fromAddresses: addrs];
|
||||
[self _addEMailsOfAddresses: addrs toArray: to];
|
||||
[_info setObject: to forKey: @"bcc"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user