mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
fix(sieve): Correctly update default sieve filter for new users
This commit is contained in:
@@ -92,7 +92,8 @@
|
||||
// We check if we must write the Sieve scripts to the server
|
||||
// upon first login if no user preferences are found, and the SOGo
|
||||
// admin has defined SOGoSieveFilters in the domain or system settings
|
||||
if ([dd sieveScriptsEnabled] && [[[ud source] values] count] == 0 &&
|
||||
//count = 1 because values will be {CDefaultsSize = 16777215; } in this case.
|
||||
if ([dd sieveScriptsEnabled] && [[[ud source] values] count] == 1 &&
|
||||
((filters = [[dd source] objectForKey: @"SOGoSieveFilters"]) || (filters = [[sd source] objectForKey: @"SOGoSieveFilters"])))
|
||||
{
|
||||
SOGoMailAccount *account;
|
||||
|
||||
Reference in New Issue
Block a user