diff --git a/NEWS b/NEWS index 266f96a72..955d14447 100644 --- a/NEWS +++ b/NEWS @@ -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) ------------------ diff --git a/UI/PreferencesUI/UIxPreferences.m b/UI/PreferencesUI/UIxPreferences.m index 76be037e3..0994c0a90 100644 --- a/UI/PreferencesUI/UIxPreferences.m +++ b/UI/PreferencesUI/UIxPreferences.m @@ -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])