+2005-03-05 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGImap4: fixed a MacOSX incompatibility (v4.5.216)
+
2005-03-03 Helge Hess <helge.hess@opengroupware.org>
* NGImap4: added some debugging facilities (v4.5.215)
+2005-03-05 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGImap4Folder.m: properly create NSURL if the absolute name doesn't
+ start with a slash
+
+ * NGImap4Context.m: initialize NSURL with a path to avoid an issue on
+ MacOSX
+
2005-03-03 Helge Hess <helge.hess@opengroupware.org>
* NGImap4FileManager.m: added debug logs which can be enabled using
- (NSURL *)url {
NSString *scheme;
- if (self->url)
+ if (self->url != nil)
return self->url;
scheme = [[self->connectionDictionary objectForKey:@"SSL"] boolValue]
self->url = [[NSURL alloc]
initWithScheme:scheme
host:[self->connectionDictionary objectForKey:@"host"]
- path:nil];
+ path:@"/"];
return self->url;
}
}
- (NSString *)absoluteName {
+ // TODO: sometimes this contains a name with no / in front (eg Dovecot on
+ // MacOSX). Find out why this is.
return self->name;
}
}
- (NSURL *)url {
+ NSString *p;
NSURL *base;
- if (self->url)
+ if (self->url != nil)
return self->url;
-
- base = [self->context url];
-
+
+ if ((base = [self->context url]) == nil) {
+ [self logWithFormat:@"ERROR: got no URL for context: %@", self->context];
+ return nil;
+ }
+
+ if ((p = [self absoluteName]) == nil)
+ return nil;
+
+ if (![p hasPrefix:@"/"]) p = [@"/" stringByAppendingString:p];
self->url = [[NSURL alloc]
- initWithScheme:[base scheme]
- host:[base host]
- path:[self absoluteName]];
+ initWithScheme:[base scheme] host:[base host] path:p];
return self->url;
}
MAJOR_VERSION:=4
MINOR_VERSION:=5
-SUBMINOR_VERSION:=215
+SUBMINOR_VERSION:=216
# v4.5.214 requires libNGExtensions v4.5.146
# v4.2.149 requires libNGStreams v4.2.34