feat(mail) Introduce option SOGoVacationAllowZeroDays to allow a sieve vacation days value of 0

This commit is contained in:
y9048a authored and QHivert committed 2025-02-11 17:17:58 +01:00
1 parent 7a7f85d1a7
commit 02dd5c3501
6 files changed
+38 -6

No files matched your search

+6 -2
View File
@@ -1000,12 +1000,16 @@ static NSArray *reminderValues = nil;
//
- (NSArray *) daysBetweenResponsesList
{
static NSArray *daysBetweenResponses = nil;
static NSMutableArray *daysBetweenResponses = nil;
if (!daysBetweenResponses)
{
daysBetweenResponses = [NSArray arrayWithObjects: @"1", @"2", @"3",
daysBetweenResponses = [NSMutableArray arrayWithObjects: @"1", @"2", @"3",
@"5", @"7", @"14", @"21", @"30", nil];
if ([[user domainDefaults] vacationAllowZeroDays])
{
[daysBetweenResponses insertObject:@"0" atIndex:0];
}
[daysBetweenResponses retain];
}