mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
Monotone-Parent: f445ddae9e72252fda8d9a7adee3c89ef2f81c87
Monotone-Revision: c8246ff1dd544334660bbbfbf76f6e992438c1e7 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-28T19:06:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2007-05-28 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Mailer/SOGoMailAccount.m ([SOGoMailAccount
|
||||
-allFolderPaths]): renamed version of "allFolderPathes", sorted by
|
||||
named and at the beginning of which we put the predefined folders.
|
||||
|
||||
* UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions
|
||||
-emptyTrashAction]): new method inspired by a similar one from
|
||||
UIxMailListView, to which we added the ability to remove
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
/* folder pathes */
|
||||
|
||||
- (NSArray *)allFolderPathes;
|
||||
- (NSArray *)allFolderPaths;
|
||||
- (NSArray *)additionalRootFolderNames; /* stuff like filters and drafts */
|
||||
|
||||
/* shared accounts */
|
||||
|
||||
@@ -134,12 +134,23 @@ static BOOL useAltNamespace = NO;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSArray *)allFolderPathes {
|
||||
NSArray *pathes;
|
||||
|
||||
pathes = [[self imap4Connection] allFoldersForURL:[self imap4URL] ];
|
||||
pathes = [pathes sortedArrayUsingSelector:@selector(compare:)];
|
||||
return pathes;
|
||||
- (NSArray *) allFolderPaths
|
||||
{
|
||||
NSMutableArray *newFolders;
|
||||
NSArray *rawFolders, *mainFolders;
|
||||
|
||||
rawFolders = [[self imap4Connection]
|
||||
allFoldersForURL: [self imap4URL]];
|
||||
|
||||
mainFolders = [NSArray arrayWithObjects: inboxFolderName, draftsFolderName,
|
||||
sentFolder, trashFolder, nil];
|
||||
newFolders = [NSMutableArray arrayWithArray: rawFolders];
|
||||
[newFolders removeObjectsInArray: mainFolders];
|
||||
[newFolders sortUsingSelector: @selector (caseInsensitiveCompare:)];
|
||||
[newFolders replaceObjectsInRange: NSMakeRange (0, 0)
|
||||
withObjectsFromArray: mainFolders];
|
||||
|
||||
return newFolders;
|
||||
}
|
||||
|
||||
/* IMAP4 */
|
||||
|
||||
Reference in New Issue
Block a user