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 {
- (NSString *)imap4FolderNameForURL:(NSURL *)_url removeFileName:(BOOL)_delfn {
/* a bit hackish, but should be OK */
NSString *folderName;
+ NSArray *names;
if (_url == nil)
return 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];