feat(mail(web)): Templates folder for pre-defined drafts

To create a template, the user needs to:

 - define a mailbox as the Templates folder;
 - move a draft to this special folder.

Fixes #4320
Fixes #5363
This commit is contained in:
Francis Lachapelle
2022-02-11 10:06:57 -05:00
parent 02b0a41567
commit c986422a3d
25 changed files with 230 additions and 9 deletions
+11
View File
@@ -492,6 +492,17 @@ NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
stringByEncodingImap4FolderName];
}
- (void) setTemplatesFolderName: (NSString *) newValue
{
[self setObject: newValue forKey: @"SOGoTemplatesFolderName"];
}
- (NSString *) templatesFolderName
{
return [[self stringForKey: @"SOGoTemplatesFolderName"]
stringByEncodingImap4FolderName];
}
- (void) setFirstDayOfWeek: (int) newValue
{
[self setInteger: newValue forKey: @"SOGoFirstDayOfWeek"];