mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 06:33:18 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user