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:
Wolfgang Sourdeau
2007-05-28 19:06:13 +00:00
parent 52c2283eba
commit a0751f9b0c
3 changed files with 22 additions and 7 deletions
+4
View File
@@ -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
+1 -1
View File
@@ -45,7 +45,7 @@
/* folder pathes */
- (NSArray *)allFolderPathes;
- (NSArray *)allFolderPaths;
- (NSArray *)additionalRootFolderNames; /* stuff like filters and drafts */
/* shared accounts */
+17 -6
View File
@@ -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 */