Monotone-Parent: 7d281c6a5f9cd3517f1a818c99070b3bba45594c

Monotone-Revision: c65c1f248f723caa00cbfd6ab993966ae8fcbf53

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-07-27T20:04:12
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-07-27 20:04:12 +00:00
parent e47039bb31
commit e199063495
2 changed files with 12 additions and 2 deletions
+4
View File
@@ -1,5 +1,9 @@
2007-07-27 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailerUI/UIxMailForwardAction.m ([UIxMailForwardAction
-forwardAction]): adapted to the new saveAttachment:withMetadata:
method (see below).
* UI/MailerUI/UIxMailEditor.m ([UIxMailEditor -saveAction]): added
code to save the attached filenames with the filename returned by
the web server as well as their mime types.
+8 -2
View File
@@ -93,11 +93,17 @@
nil];
if ((error = [newDraft storeInfo:info]) != nil)
return error;
/* attach message */
// TODO: use subject for filename?
error = [newDraft saveAttachment:content withName:@"forward.mail"];
// error = [newDraft saveAttachment:content withName:@"forward.mail"];
attachment = [NSDictionary dictionaryWithObjectsAndKeys:
@"forward.mail", @"filename",
@"message/rfc822", @"mime-type",
nil];
error = [newDraft saveAttachment: content
withMetadata: attachment];
if (error != nil)
return error;