mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-10 01:13:20 +00:00
feat(mail) Introduce option SOGoVacationAllowZeroDays to allow a sieve vacation days value of 0
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user