mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-09 12:29:44 +00:00
Validate custom subject for vacation auto-reply
This commit is contained in:
@@ -345,7 +345,7 @@ static SoProduct *preferencesProduct = nil;
|
||||
|
||||
// Add the domain's default vacation subject if user has not specified a custom subject
|
||||
vacationOptions = [defaults vacationOptions];
|
||||
if (![vacationOptions objectForKey: @"customSubject"] && [domainDefaults vacationDefaultSubject])
|
||||
if (![[vacationOptions objectForKey: @"customSubject"] length] && [domainDefaults vacationDefaultSubject])
|
||||
{
|
||||
if (vacationOptions)
|
||||
vacation = [NSMutableDictionary dictionaryWithDictionary: vacationOptions];
|
||||
|
||||
@@ -839,6 +839,7 @@
|
||||
<md-input-container class="md-block md-flex">
|
||||
<label><var:string label:value="Auto reply subject"/></label>
|
||||
<input type="text"
|
||||
ng-required="app.preferences.defaults.Vacation.customSubjectEnabled"
|
||||
ng-disabled="!app.preferences.defaults.Vacation.customSubjectEnabled"
|
||||
ng-model="app.preferences.defaults.Vacation.customSubject"/>
|
||||
<div class="sg-hint" ng-show="app.sieveVariablesCapability">
|
||||
|
||||
Reference in New Issue
Block a user