+2005-03-03 Helge Hess <helge.hess@opengroupware.org>
+
+ * SOGoMailManager.m: improved compatibility with Cocoa Foundation
+ (some weird difference in NGImap4 result processing) (v0.9.77)
+
2005-02-21 Helge Hess <helge.hess@opengroupware.org>
* SOGoMailObject.m: generate proper .ics extension for text/calendar
/* one entry is the folder itself, so we need at least two */
return [NSArray array];
+#if __APPLE__
+ // TODO: somehow results are different on OSX
+ prefixlen = [_fn isEqualToString:@""] ? 0 : [_fn length] + 1;
+#else
prefixlen = [_fn isEqualToString:@"/"] ? 1 : [_fn length] + 1;
+#endif
ma = [NSMutableArray arrayWithCapacity:count];
for (i = 0; i < count; i++) {
NSString *p;
p = [_array objectAtIndex:i];
if ([p length] <= prefixlen)
continue;
- if (![p hasPrefix:_fn])
+ if (prefixlen != 0 && ![p hasPrefix:_fn])
continue;
/* cut of common part */