Fix saving of receipt action for main IMAP account

pull/259/head
Francis Lachapelle 2019-08-08 11:35:14 -04:00
parent 9d72c79a83
commit 7486c011d2
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -7,6 +7,7 @@ Enhancements
Bug fixes
- [web] properly handle Windows-1256 charaset (#4781)
- [web] fixed saving value of receipt action for main IMAP account
4.0.8 (2019-07-19)
------------------

View File

@ -1994,8 +1994,8 @@ static NSArray *reminderValues = nil;
if ([receipts isKindOfClass: [NSDictionary class]])
{
action = [receipts objectForKey: @"receiptAction"];
[target setObject: @"1" forKey: @"SOGoMailReceiptAllow"];
action = [[receipts objectForKey: @"receiptAction"] isEqualToString: @"ignore"] ? @"0" : @"1";
[target setObject: action forKey: @"SOGoMailReceiptAllow"];
action = [receipts objectForKey: @"receiptNonRecipientAction"];
if ([self _validateReceiptAction: action])