mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 12:58:50 +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];
|
||||
|
||||
Reference in New Issue
Block a user