fix(sieve): sieve availibility was checked even if we disable it

This commit is contained in:
Hivert Quentin
2023-09-18 11:44:45 +02:00
parent bafb1ffc69
commit bba1da1b2b
+1 -1
View File
@@ -1748,7 +1748,7 @@ static NSArray *reminderValues = nil;
dd = [[context activeUser] domainDefaults];
// We check if the Sieve server is available *ONLY* if at least one of the option is enabled
if (([dd sieveScriptsEnabled] || [dd vacationEnabled] || [dd forwardEnabled] || [dd notificationEnabled])
if (!([dd sieveScriptsEnabled] || [dd vacationEnabled] || [dd forwardEnabled] || [dd notificationEnabled])
|| [self _isSieveServerAvailable])
{
BOOL forceActivation = ![[v objectForKey: @"hasActiveExternalSieveScripts"] boolValue];