+2007-08-01 Wolfgang Sourdeau <WSourdeau@Inverse.CA>
+
+ * NGImap4: fixed some gstep-base issue (OGo bug #1893) (v4.7.252)
+
2007-08-01 Wolfgang Sourdeau <WSourdeau@Inverse.CA>
* NGImap4: added support for bodystructure fetches (fixes OGo bug
+2007-08-14 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGImap4Connection.m: fixed some issue with gnustep-base and the
+ first char of a subfolder name (fixes OGo bug #1893)
+
2007-08-01 Wolfgang Sourdeau <WSourdeau@Inverse.CA>
* NGImap4ResponseParser.m: added support for bodystructure fetches
/*
- Copyright (C) 2004-2005 SKYRIX Software AG
+ Copyright (C) 2004-2007 SKYRIX Software AG
This file is part of OpenGroupware.org.
NSMutableArray *ma;
unsigned i, count, prefixlen;
- if ((count = [_array count]) < 2)
+ if ((count = [_array count]) < 2) {
/* one entry is the folder itself, so we need at least two */
return [NSArray array];
+ }
-#if __APPLE__
// TODO: somehow results are different on OSX
+ // we should investigate and test all Foundation libraries and document the
+ // differences
+#if __APPLE__
prefixlen = [_fn isEqualToString:@""] ? 0 : [_fn length] + 1;
+#elif GNUSTEP_BASE_LIBRARY
+ prefixlen = [_fn isEqualToString:@"/"] ? 1 : [_fn length];
#else
prefixlen = [_fn isEqualToString:@"/"] ? 1 : [_fn length] + 1;
#endif