mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-07 09:25:09 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user