Monotone-Parent: 7c8a1f386c73febec3eab973d7e2713c5e859b33
Monotone-Revision: f17c5b526c3d5e27597a7f1cf132a2b6c6312003 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-27T17:36:18 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
ae8da0bace
commit
57b2f26854
|
@ -19,14 +19,19 @@
|
|||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "UIxMailEditorAction.h"
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import <NGExtensions/NSNull+misc.h>
|
||||
|
||||
#import <SoObjects/Mailer/SOGoMailObject.h>
|
||||
#import <SoObjects/Mailer/SOGoDraftObject.h>
|
||||
|
||||
#import "UIxMailEditorAction.h"
|
||||
|
||||
@interface UIxMailForwardAction : UIxMailEditorAction
|
||||
@end
|
||||
|
||||
#include <SoObjects/Mailer/SOGoMailObject.h>
|
||||
#include <SoObjects/Mailer/SOGoDraftObject.h>
|
||||
#include "common.h"
|
||||
|
||||
@implementation UIxMailForwardAction
|
||||
|
||||
|
@ -65,7 +70,7 @@
|
|||
- (id)forwardAction {
|
||||
NSException *error;
|
||||
NSData *content;
|
||||
NSDictionary *info;
|
||||
NSDictionary *info, *attachment;
|
||||
id result;
|
||||
|
||||
/* fetch message */
|
||||
|
@ -86,13 +91,13 @@
|
|||
[self forwardSubject:[[self clientObject] subject]],
|
||||
@"subject",
|
||||
nil];
|
||||
if ((error = [self->newDraft storeInfo:info]) != nil)
|
||||
if ((error = [newDraft storeInfo:info]) != nil)
|
||||
return error;
|
||||
|
||||
/* attach message */
|
||||
|
||||
// TODO: use subject for filename?
|
||||
error = [self->newDraft saveAttachment:content withName:@"forward.mail"];
|
||||
error = [newDraft saveAttachment:content withName:@"forward.mail"];
|
||||
if (error != nil)
|
||||
return error;
|
||||
|
||||
|
|
Loading…
Reference in a new issue