2007-11-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+ * UI/MailPartViewers/UIxMailPartHTMLViewer.m
+ ([UIxMailPartHTMLViewer -_attachmentIds]): the reference was one
+ character too short, which cause the images not to be displayed
+ sometimes and crashes to happen whenever the references on a
+ message were wrong (due to bugs in SOPE).
+
+ * UI/MailerUI/UIxMailListView.m ([UIxMailListView
+ -hasMessageAttachment]): consider an attachment any content that
+ has a non-nil disposition.
+
* SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder
-newFolderWithName:nameandNameInContainer:newNameInContainer]):
fixed method to make use of the parameters instead of the useless
#import <NGObjWeb/SoObject+SoDAV.h>
#import <NGObjWeb/WOContext.h>
#import <NGObjWeb/WORequest.h>
+#import <NGObjWeb/WOResponse.h>
#import <NGExtensions/NSObject+Logs.h>
#import <NGExtensions/NSString+misc.h>
#import <EOControl/EOQualifier.h>
#import <Foundation/NSString.h>
#import <NGObjWeb/NSException+HTTP.h>
-#import <NGObjWeb/SoObject.h>
#import <NGObjWeb/WOApplication.h>
#import <NGObjWeb/WOContext.h>
#import <NGObjWeb/WOContext+SoObjects.h>
+#import <NGObjWeb/WOResponse.h>
+#import <NGObjWeb/SoObject.h>
#import <NGObjWeb/SoUser.h>
#import <EOControl/EOSortOrdering.h>
#import <SaxObjC/XMLNamespaces.h>
#import <Foundation/NSArray.h>
#import <NGObjWeb/WOApplication.h>
+#import <NGObjWeb/WOResponse.h>
#import <NGObjWeb/WOContext+SoObjects.h>
#import <NGExtensions/NSString+misc.h>
#import <NGExtensions/NSObject+Logs.h>
02111-1307, USA.
*/
+#import <Foundation/NSCalendarDate.h>
#import <Foundation/NSPropertyList.h>
#import <Foundation/NSUserDefaults.h>
#import <Foundation/NSValue.h>
02111-1307, USA.
*/
+#import <Foundation/NSDictionary.h>
#import <Foundation/NSCalendarDate.h>
#import <Foundation/NSUserDefaults.h>
{
id newFolder;
NSArray *elements, *pathElements;
- NSString *ocsPath, *objectPath, *owner, *ocsName, *folderName;
+ NSString *ocsPath, *objectPath, *login, *ocsName, *folderName;
elements = [reference componentsSeparatedByString: @":"];
- owner = [elements objectAtIndex: 0];
+ login = [elements objectAtIndex: 0];
objectPath = [elements objectAtIndex: 1];
pathElements = [objectPath componentsSeparatedByString: @"/"];
if ([pathElements count] > 1)
ocsName = @"personal";
ocsPath = [NSString stringWithFormat: @"/Users/%@/%@/%@",
- owner, [pathElements objectAtIndex: 0], ocsName];
- folderName = [NSString stringWithFormat: @"%@_%@", owner, ocsName];
+ login, [pathElements objectAtIndex: 0], ocsName];
+ folderName = [NSString stringWithFormat: @"%@_%@", login, ocsName];
newFolder = [[self alloc] initWithName: folderName
inContainer: aContainer];
[newFolder setOCSPath: ocsPath];
- [newFolder setOwner: owner];
+ [newFolder setOwner: login];
return newFolder;
}
{
NSArray *bLanguages;
WOContext *context;
- NSString *language;
+ NSString *lng;
context = [[WOApplication application] context];
bLanguages = [[context request] browserLanguages];
if ([bLanguages count] > 0)
- language = [bLanguages objectAtIndex: 0];
+ lng = [bLanguages objectAtIndex: 0];
- if (![language length])
- language = defaultLanguage;
+ if (![lng length])
+ lng = defaultLanguage;
- return language;
+ return lng;
}
+ (SOGoUser *) userWithLogin: (NSString *) newLogin
#import <NGObjWeb/WOContext+SoObjects.h>
#import <NGObjWeb/WODynamicElement.h>
#import <NGObjWeb/WORequest.h>
+#import <NGObjWeb/WOResponse.h>
#import <NGObjWeb/WOResourceManager.h>
#import <NGObjWeb/WOSession.h>
#import <NGExtensions/NSObject+Logs.h>
url = [NSMutableString new];
[url appendString: baseURL];
[url appendFormat: @"/%@", [partPath componentsJoinedByString: @"/"]];
- [url deleteCharactersInRange: NSMakeRange([url length] - 3, 2)];
+ [url deleteCharactersInRange: NSMakeRange([url length] - 2, 2)];
parts = [[parent bodyInfo] objectForKey: @"parts"];
max = [parts count];
for (count = 0; count < max; count++)
= [[parts objectsForKey: @"disposition"] objectEnumerator];
while (!hasAttachment
&& (currentDisp = [dispositions nextObject]))
- hasAttachment = ([[currentDisp objectForKey: @"type"]
- isEqualToString: @"ATTACHMENT"]);
+ hasAttachment = ([currentDisp objectForKey: @"type"]);
}
return hasAttachment;