Monotone-Parent: 066bfc11f82275269e5bf2cc1cbbf0e9427e8d96

Monotone-Revision: 716ad11e755f3a78bb0353df886cf08096149a36

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-07-10T19:23:39
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-07-10 19:23:39 +00:00
parent 8d1c0726bb
commit 87a3d613b3
5 changed files with 80 additions and 82 deletions
+13 -14
View File
@@ -139,24 +139,23 @@ static BOOL debugOn = YES;
return url;
}
- (NSMutableString *) imap4URLString
{
NSMutableString *urlString;
urlString = [container imap4URLString];
[urlString appendFormat: @"%@/", [nameInContainer stringByEscapingURL]];
return urlString;
}
- (NSURL *) imap4URL
{
NSString *thisName, *urlFormat, *urlString;
/* this could probably be handled better from NSURL but it's buggy in
GNUstep */
if (!imap4URL)
{
/* this could probably be handled better from NSURL but it's buggy in
GNUstep */
urlString = [[container imap4URL] absoluteString];
thisName = [[self relativeImap4Name] stringByEscapingURL];
if ([urlString hasSuffix: @"/"])
urlFormat = @"%@%@";
else
urlFormat = @"%@/%@";
imap4URL = [[NSURL alloc]
initWithString: [NSString stringWithFormat: urlFormat,
urlString,
thisName]];
imap4URL = [[NSURL alloc] initWithString: [self imap4URLString]];
}
return imap4URL;