See ChangeLog

Monotone-Parent: 3e3f539c1798ad054238bb1eb3099675124b888b
Monotone-Revision: 57dd1ad4053d9e7949e68a06c4f52bd1ec44d9d1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-05-19T23:31:51
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle committed 2009-05-19 23:31:51 +00:00
1 parent d7bcd8d2da
commit 13cc138afc
3 files changed
+40 -5

No files matched your search

+11 -3
View File
@@ -57,7 +57,7 @@ static NSString *sentFolderName = nil;
static NSString *trashFolderName = nil;
static NSString *sharedFolderName = @""; // TODO: add English default
static NSString *otherUsersFolderName = @""; // TODO: add English default
static BOOL defaultShowSubscribedFoldersOnly = NO;
// this is temporary, until we allow users to manage their own accounts
static NSString *fallbackIMAP4Server = nil;
@@ -109,6 +109,8 @@ static NSString *fallbackIMAP4Server = nil;
else
fallbackIMAP4Server = @"localhost";
}
defaultShowSubscribedFoldersOnly = [ud boolForKey: @"SOGoMailShowSubscribedFoldersOnly"];
}
- (id) init
@@ -209,10 +211,16 @@ static NSString *fallbackIMAP4Server = nil;
NSMutableArray *folderPaths;
NSArray *rawFolders, *mainFolders;
NSUserDefaults *ud;
NSString *showSubscribedFoldersOnly;
ud = [[context activeUser] userDefaults];
rawFolders = [[self imap4Connection] allFoldersForURL: [self imap4URL]
onlySubscribedFolders: [ud boolForKey: @"showSubscribedFoldersOnly"]];
showSubscribedFoldersOnly = [ud stringForKey: @"showSubscribedFoldersOnly"];
if (showSubscribedFoldersOnly)
rawFolders = [[self imap4Connection] allFoldersForURL: [self imap4URL]
onlySubscribedFolders: [showSubscribedFoldersOnly boolValue]];
else
rawFolders = [[self imap4Connection] allFoldersForURL: [self imap4URL]
onlySubscribedFolders: defaultShowSubscribedFoldersOnly];
mainFolders = [[NSArray arrayWithObjects:
[self inboxFolderNameInContext: context],