From: helge Date: Wed, 27 Oct 2004 20:27:25 +0000 (+0000) Subject: fixed bug X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=795827aec97a910382936cedd1db96770136208f;p=scalable-opengroupware.org fixed bug git-svn-id: http://svn.opengroupware.org/SOGo/trunk@437 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/SoObjects/Mailer/SOGoMailManager.m b/SOGo/SoObjects/Mailer/SOGoMailManager.m index f565be8a..e0660ba3 100644 --- a/SOGo/SoObjects/Mailer/SOGoMailManager.m +++ b/SOGo/SoObjects/Mailer/SOGoMailManager.m @@ -47,7 +47,7 @@ static NSString *imap4Separator = nil; imap4Separator = [[ud stringForKey:@"SOGoIMAP4StringSeparator"] copy]; if ([imap4Separator length] == 0) imap4Separator = @"/"; - NSLog(@"Note: using '%@' as the IMAP4 folder separator."); + NSLog(@"Note: using '%@' as the IMAP4 folder separator.", imap4Separator); } + (id)defaultMailManager { @@ -239,6 +239,7 @@ static NSString *imap4Separator = nil; - (NSString *)imap4FolderNameForURL:(NSURL *)_url removeFileName:(BOOL)_delfn { /* a bit hackish, but should be OK */ NSString *folderName; + NSArray *names; if (_url == nil) return nil; @@ -251,8 +252,8 @@ static NSString *imap4Separator = nil; if (_delfn) folderName = [folderName stringByDeletingLastPathComponent]; - return [[folderName pathComponents] componentsJoinedByString: - [self imap4Separator]]; + names = [folderName pathComponents]; + return [names componentsJoinedByString:[self imap4Separator]]; } - (NSString *)imap4FolderNameForURL:(NSURL *)_url { return [self imap4FolderNameForURL:_url removeFileName:NO];