Monotone-Parent: 78bf08327def3b919404fee519b7ba663184b54e

Monotone-Revision: 2ddf3577ff0d5f52e3f3dda10dce5e8c94f2421b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-12-17T20:39:17
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-12-17 20:39:17 +00:00
parent 0645480c70
commit 21de09a9f0
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -1,5 +1,9 @@
2007-12-17 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject
-fetchMailForForwarding:sourceMail]): append the signature to
mails forwarded as attachment.
* UI/MailPartViewers/UIxMailPartViewer.m ([UIxMailPartViewer
-clientPart]): new method that returns the corresponding
SOGoMailPart instance.
+5
View File
@@ -634,6 +634,7 @@ static BOOL showTextAttachmentsInline = NO;
{
NSDictionary *info, *attachment;
SOGoUser *currentUser;
NSString *signature;
[sourceMail fetchCoreInfos];
@@ -659,6 +660,9 @@ static BOOL showTextAttachmentsInline = NO;
{
// TODO: use subject for filename?
// error = [newDraft saveAttachment:content withName:@"forward.mail"];
signature = [currentUser signature];
if ([signature length])
[self setText: [NSString stringWithFormat: @"\n-- \n%@", signature]];
attachment = [NSDictionary dictionaryWithObjectsAndKeys:
[sourceMail filenameForForward], @"filename",
@"message/rfc822", @"mimetype",
@@ -666,6 +670,7 @@ static BOOL showTextAttachmentsInline = NO;
[self saveAttachment: [sourceMail content]
withMetadata: attachment];
}
[self storeInfo];
}