2007-11-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+ * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder
+ +folderWithSubscriptionReference:referenceinContainer:aContainer]):
+ fixed a leak.
+
* UI/MailPartViewers/UIxMailPartHTMLViewer.m
([UIxMailPartHTMLViewer -_attachmentIds]): the reference was one
character too short, which cause the images not to be displayed
#import <GDLContentStore/NSURL+GCS.h>
#import <SaxObjC/XMLNamespaces.h>
#import <UI/SOGoUI/SOGoFolderAdvisory.h>
+#import "NSDictionary+Utilities.h"
#import "NSArray+Utilities.h"
#import "NSString+Utilities.h"
{
id newFolder;
NSArray *elements, *pathElements;
- NSString *ocsPath, *objectPath, *login, *ocsName, *folderName;
+ NSString *path, *objectPath, *login, *ocsName, *folderName;
elements = [reference componentsSeparatedByString: @":"];
login = [elements objectAtIndex: 0];
else
ocsName = @"personal";
- ocsPath = [NSString stringWithFormat: @"/Users/%@/%@/%@",
- login, [pathElements objectAtIndex: 0], ocsName];
+ path = [NSString stringWithFormat: @"/Users/%@/%@/%@",
+ login, [pathElements objectAtIndex: 0], ocsName];
folderName = [NSString stringWithFormat: @"%@_%@", login, ocsName];
- newFolder = [[self alloc] initWithName: folderName
- inContainer: aContainer];
- [newFolder setOCSPath: ocsPath];
+ newFolder = [self objectWithName: folderName inContainer: aContainer];
+ [newFolder setOCSPath: path];
[newFolder setOwner: login];
return newFolder;
{
ownerIdentity = [[SOGoUser userWithLogin: ownerLogin roles: nil]
primaryIdentity];
- [displayName appendFormat: @" (%@ <%@>)",
- [ownerIdentity objectForKey: @"fullName"],
- [ownerIdentity objectForKey: @"email"]];
+ [displayName
+ appendString: [ownerIdentity keysWithFormat:
+ @" (%{fullName} <%{email}>)"]];
}
[displayName retain];
}
= [[parts objectsForKey: @"disposition"] objectEnumerator];
while (!hasAttachment
&& (currentDisp = [dispositions nextObject]))
- hasAttachment = ([currentDisp objectForKey: @"type"]);
+ hasAttachment = ([[currentDisp objectForKey: @"type"] length]);
}
return hasAttachment;
/* only need to restrict if we have a lot */
uids = [uids subarrayWithRange: r];
- msgs = [[self clientObject] fetchUIDs: uids parts: [self fetchKeys]];
+ msgs = (NSDictionary *) [[self clientObject] fetchUIDs: uids
+ parts: [self fetchKeys]];
messages = [[msgs objectForKey: @"fetch"] retain];
}
{
WORequest *request;
NSString *specificMessage, *searchCriteria, *searchValue;
- SOGoUserFolder *co;
+ SOGoMailFolder *co;
request = [context request];