]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1125 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Fri, 27 Jul 2007 17:36:15 +0000 (17:36 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Fri, 27 Jul 2007 17:36:15 +0000 (17:36 +0000)
UI/MailerUI/UIxMailForwardAction.m

index 9719f44cf24aa1fc72ff65a35292ccddd93fc1d9..29daff75f9717da929f96b6d05870ec44cc41beb 100644 (file)
   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 */
                         [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;