Monotone-Parent: a1668784bf0e7d4c0f6537e4fd960651c40e912b

Monotone-Revision: 4820885b1e556f6d0177021967d8b07cb1154aff

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-23T23:34:26
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-02-23 23:34:26 +00:00
parent c497b03aa5
commit 0056906629
2 changed files with 12 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ MakeDisplayFolderName (NSString *folderName)
inMemCtx: (TALLOC_CTX *) memCtx
{
struct mapistore_contexts_list *firstContext = NULL, *context;
NSString *urlBase, *stringData, *currentName, *inboxName, *draftsName, *sentName;
NSString *urlBase, *stringData, *currentName, *inboxName, *draftsName, *sentName, *trashName;
NSArray *unprefixedFolders;
NSMutableArray *secondaryFolders;
enum mapistore_context_role role[] = {MAPISTORE_MAIL_ROLE,
@@ -116,6 +116,13 @@ MakeDisplayFolderName (NSString *folderName)
[unprefixedFolders componentsJoinedByString: @"/folder"]];
folderName[2] = sentName;
/* Note: trash is not used as a mail folder, since "Deleted Items" makes use of
the fallback context */
unprefixedFolders = [[accountFolder trashFolderNameInContext: woContext]
componentsSeparatedByString: @"/"];
trashName = [NSString stringWithFormat: @"folder%@",
[unprefixedFolders componentsJoinedByString: @"/folder"]];
urlBase = [NSString stringWithFormat: @"sogo://%@:%@@mail/", userName, userName];
for (count = 0; count < 3; count++)
{