mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 23:07:12 +00:00
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:
1 parent
d7bcd8d2da
commit
13cc138afc
3 files changed
+40
-5
No files matched your search
@@ -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],
|
||||
|
||||
Reference in new issue
Block a user