mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
@@ -41,6 +41,7 @@
|
||||
#import <SOGo/SOGoSystemDefaults.h>
|
||||
#import <SOGo/SOGoUserFolder.h>
|
||||
#import <SOGo/SOGoParentFolder.h>
|
||||
#import <SOGo/SOGoTextTemplateFile.h>
|
||||
#import <SOGo/WOResourceManager+SOGo.h>
|
||||
#import <SOGo/SOGoBuild.h>
|
||||
#import <Mailer/SOGoMailAccount.h>
|
||||
@@ -1103,6 +1104,40 @@ static NSArray *reminderValues = nil;
|
||||
return [[user domainDefaults] vacationEnabled];
|
||||
}
|
||||
|
||||
- (NSString *) vacationHeader
|
||||
{
|
||||
NSString *path;
|
||||
|
||||
path = [[user domainDefaults] vacationHeaderTemplateFile];
|
||||
|
||||
return [self _vacationTextForTemplate: path];
|
||||
}
|
||||
|
||||
- (NSString *) vacationFooter
|
||||
{
|
||||
NSString *path;
|
||||
|
||||
path = [[user domainDefaults] vacationFooterTemplateFile];
|
||||
|
||||
return [self _vacationTextForTemplate: path];
|
||||
}
|
||||
|
||||
- (NSString *) _vacationTextForTemplate: (NSString *) templateFilePath
|
||||
{
|
||||
NSString *text;
|
||||
SOGoTextTemplateFile *templateFile;
|
||||
|
||||
text = nil;
|
||||
if (templateFilePath)
|
||||
{
|
||||
templateFile = [SOGoTextTemplateFile textTemplateFromFile: templateFilePath];
|
||||
if (templateFile)
|
||||
text = [templateFile textForUser: user];
|
||||
}
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
// - (void) setSieveFiltersValue: (NSString *) newValue
|
||||
// {
|
||||
// sieveFilters = [newValue objectFromJSONString];
|
||||
|
||||
Reference in New Issue
Block a user