+2006-08-03 Wolfgang Sourdeau <WSourdeau@Inverse.CA>
+
+ * NGImap4: improved subfolder handling (v4.5.242)
+
2006-07-04 Helge Hess <helge.hess@opengroupware.org>
* use %p for pointer formats, fixed gcc 4.1 warnings, use -isNotEmpty
/* Cyrus already tells us whether we need to check for children */
flags = [result objectForKey:folderName];
if ([flags containsObject:@"hasnochildren"]) {
- if (debugKeys)
- NSLog(@"%s: folder %@ has no children.", __PRETTY_FUNCTION__,folderName);
+ if (debugKeys) {
+ [self logWithFormat:@"%s: folder %@ has no children.",
+ __PRETTY_FUNCTION__,folderName];
+ }
+ return nil;
+ }
+ if ([flags containsObject:@"noinferiors"]) {
+ if (debugKeys) {
+ [self logWithFormat:@"%s: folder %@ cannot contain children.",
+ __PRETTY_FUNCTION__,folderName];
+ }
return nil;
}
if (debugKeys) {
- NSLog(@"%s: all keys %@: %@", __PRETTY_FUNCTION__, folderName,
- [[result allKeys] componentsJoinedByString:@", "]);
+ [self logWithFormat:@"%s: all keys %@: %@",
+ __PRETTY_FUNCTION__, folderName,
+ [[result allKeys] componentsJoinedByString:@", "]];
}
names = SOGoMailGetDirectChildren([result allKeys], folderName);
if (debugKeys) {
- NSLog(@"%s: subfolders of '%@': %@", __PRETTY_FUNCTION__, folderName,
- [names componentsJoinedByString:@","]);
+ [self logWithFormat:
+ @"%s: subfolders of '%@': %@", __PRETTY_FUNCTION__, folderName,
+ [names componentsJoinedByString:@","]];
}
return names;
}