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];
}
@@ -1175,7 +1175,12 @@
ng-model="app.preferences.defaults.Vacation.daysBetweenResponse">
<var:foreach list="daysBetweenResponsesList" item="item">
<md-option var:value="item">
<var:string value="item"/>
<var:if condition="item" const:value="0">
<i><var:string label:value="Always send vacation message response"/></i>
</var:if>
<var:if condition="item" const:value="0" const:negate="YES">
<var:string value="item"/>
</var:if>
</md-option>
</var:foreach>
</md-select>
@@ -1499,4 +1504,4 @@
</script>
</var:component>
</var:component>