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

This commit is contained in:
y9048a
2025-02-11 17:17:58 +01:00
committed by QHivert
parent 7a7f85d1a7
commit 02dd5c3501
6 changed files with 38 additions and 6 deletions
+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];
}