]> err.no Git - scalable-opengroupware.org/commitdiff
fixed Sent folder lookup
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 15 Feb 2005 17:40:42 +0000 (17:40 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 15 Feb 2005 17:40:42 +0000 (17:40 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@568 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/SoObjects/Mailer/ChangeLog
SOGo/SoObjects/Mailer/SOGoMailAccount.m
SOGo/SoObjects/Mailer/Version

index 1e74cf3b7fd2b0bba96597c35578b919f043e35f..1538e62939e54ff7fcc29e9b4d051359e8fd2716 100644 (file)
@@ -1,3 +1,10 @@
+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
index a1eb1083371925df97a53ca1ba4be51c8b1368ad..49924b4ac318c7f8a407dc8d7f8947e657efe40f 100644 (file)
@@ -32,10 +32,13 @@ static NSArray  *rootFolderNames  = nil;
 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, 
@@ -256,7 +259,7 @@ static NSString *sieveFolderName  = @"Filters";
   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]
@@ -277,8 +280,8 @@ static NSString *sieveFolderName  = @"Filters";
   
   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]
index b127af6bb8ab1b62fefa33ca12de240387dec592..162f9207ec57d6cbc34a5b8c48aa47600da3a610 100644 (file)
@@ -1,6 +1,6 @@
 # Version file
 
-SUBMINOR_VERSION:=74
+SUBMINOR_VERSION:=75
 
 # v0.9.69 requires libNGMime       v4.5.210
 # v0.9.55 requires libNGExtensions v4.5.136