From 79a29b662f81de8f7a05c5a464f53826958cea7a Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 21 Nov 2006 20:32:44 +0000 Subject: [PATCH] Monotone-Parent: aa4ef1d1bac572d15a5bfc60bf3cd7b7cb0875a0 Monotone-Revision: 570139b68f09705f78bbf777102e81e343566d3d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-21T20:32:44 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 7 +++++++ SoObjects/Mailer/SOGoMailAccount.m | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fa081da99..fae7dc4be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-11-21 Wolfgang Sourdeau + + * SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount + -lookupFolder:ofClassNamed:inContext:]): added the ability to + configure the name of the SOGoDraftFolders with the ud var + "SOGoDraftsFolderName". + 2006-11-17 Wolfgang Sourdeau * SoObjects/SOGo/SOGoObject.m ([SOGoObject diff --git a/SoObjects/Mailer/SOGoMailAccount.m b/SoObjects/Mailer/SOGoMailAccount.m index aee34c264..d4ddbdcbd 100644 --- a/SoObjects/Mailer/SOGoMailAccount.m +++ b/SoObjects/Mailer/SOGoMailAccount.m @@ -43,6 +43,7 @@ static BOOL useAltNamespace = NO; + (void)initialize { NSUserDefaults *ud = [NSUserDefaults standardUserDefaults]; + NSString *cfgDraftsFolderName; NSAssert2([super version] == 1, @"invalid superclass (%@) version %i !", @@ -52,10 +53,15 @@ static BOOL useAltNamespace = NO; sharedFolderName = [ud stringForKey:@"SOGoSharedFolderName"]; otherUsersFolderName = [ud stringForKey:@"SOGoOtherUsersFolderName"]; - + cfgDraftsFolderName = [ud stringForKey:@"SOGoDraftsFolderName"]; + if ([cfgDraftsFolderName length] > 0) + { + ASSIGN (draftsFolderName, cfgDraftsFolderName); + NSLog(@"Note: using drafts folder named: '%@'", draftsFolderName); + } + NSLog(@"Note: using shared-folders name: '%@'", sharedFolderName); NSLog(@"Note: using other-users-folders name: '%@'", otherUsersFolderName); - if ([ud boolForKey:@"SOGoEnableSieveFolder"]) { rootFolderNames = [[NSArray alloc] initWithObjects: draftsFolderName,