+2005-02-15 Helge Hess <helge.hess@opengroupware.org>
+
+ * SOGoMailAccount.m: added 'SOGoSpecialFoldersInRoot' default to
+ make SOGo lookup Sent/Trash in the IMAP4 root instead of under
+ INBOX (that is, set SOGoSpecialFoldersInRoot to YES if you have
+ 'altnamespace' in Cyrus set to yes) (v0.9.75)
+
2005-02-14 Helge Hess <helge.hess@opengroupware.org>
* v0.9.74
static NSString *inboxFolderName = @"INBOX";
static NSString *draftsFolderName = @"Drafts";
static NSString *sieveFolderName = @"Filters";
+static BOOL useAltNamespace = NO;
+ (void)initialize {
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
-
+
+ useAltNamespace = [ud boolForKey:@"SOGoSpecialFoldersInRoot"];
+
if ([ud boolForKey:@"SOGoEnableSieveFolder"]) {
rootFolderNames = [[NSArray alloc] initWithObjects:
draftsFolderName,
if (self->sentFolder != nil)
return self->sentFolder;
- folder = [self inboxFolderInContext:_ctx];
+ folder = useAltNamespace ? (id)self : [self inboxFolderInContext:_ctx];
if ([folder isKindOfClass:[NSException class]]) return folder;
folder = [folder lookupName:[self sentFolderNameInContext:_ctx]
if (self->trashFolder != nil)
return self->trashFolder;
-
- folder = [self inboxFolderInContext:_ctx];
+
+ folder = useAltNamespace ? (id)self : [self inboxFolderInContext:_ctx];
if ([folder isKindOfClass:[NSException class]]) return folder;
folder = [folder lookupName:[self trashFolderNameInContext:_ctx]