mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-20 22:46:54 +00:00
feat(preferences): allow hiding of vacation the vacation period
This is controllable using the new SOGoVacationPeriodEnabled domain defaults variable.
This commit is contained in:
1 parent
32968092e2
commit
c2e7f6a866
7 files changed
+81
-280
No files matched your search
@@ -927,7 +927,9 @@ static NSString *sieveScriptName = @"sogo";
|
||||
}
|
||||
|
||||
// Start date of auto-reply
|
||||
if ([[values objectForKey: @"startDateEnabled"] boolValue] && dateCapability)
|
||||
if ([dd vacationPeriodEnabled] &&
|
||||
[[values objectForKey: @"startDateEnabled"] boolValue] &&
|
||||
dateCapability)
|
||||
{
|
||||
[req addObjectUniquely: @"date"];
|
||||
[req addObjectUniquely: @"relational"];
|
||||
@@ -938,7 +940,9 @@ static NSString *sieveScriptName = @"sogo";
|
||||
}
|
||||
|
||||
// End date of auto-reply
|
||||
if ([[values objectForKey: @"endDateEnabled"] boolValue] && dateCapability)
|
||||
if ([dd vacationPeriodEnabled] &&
|
||||
[[values objectForKey: @"endDateEnabled"] boolValue] &&
|
||||
dateCapability)
|
||||
{
|
||||
[req addObjectUniquely: @"date"];
|
||||
[req addObjectUniquely: @"relational"];
|
||||
|
||||
Reference in new issue
Block a user