From e199063495b85b7f314f4778c91640ed27e8806a Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 27 Jul 2007 20:04:12 +0000 Subject: [PATCH] Monotone-Parent: 7d281c6a5f9cd3517f1a818c99070b3bba45594c Monotone-Revision: c65c1f248f723caa00cbfd6ab993966ae8fcbf53 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-27T20:04:12 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/MailerUI/UIxMailForwardAction.m | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe9188e68..08cf853ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-07-27 Wolfgang Sourdeau + * 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. diff --git a/UI/MailerUI/UIxMailForwardAction.m b/UI/MailerUI/UIxMailForwardAction.m index 29daff75f..ba59391e4 100644 --- a/UI/MailerUI/UIxMailForwardAction.m +++ b/UI/MailerUI/UIxMailForwardAction.m @@ -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;