From 7486c011d2483cbb8021f4232a23ceeafd04d3f9 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 8 Aug 2019 11:35:14 -0400 Subject: [PATCH] Fix saving of receipt action for main IMAP account --- NEWS | 1 + UI/PreferencesUI/UIxPreferences.m | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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])