Monotone-Parent: cbd05d470bee2e063abb94750478a7df2245b44b

Monotone-Revision: b60062325db9b515049a18a0ab18bb9e528b1499

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-05-22T15:46:49
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-05-22 15:46:49 +00:00
parent 31722d6d85
commit 595d15a06c
2 changed files with 22 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
2008-05-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Mailer/SOGoDraftObject.m ([SOGoDraftObject
-sendMail]): the email passed as parameter to sendmail is now the
bare user email.
2008-05-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions
+16 -1
View File
@@ -1269,6 +1269,21 @@ static BOOL showTextAttachmentsInline = NO;
return allRecipients;
}
- (NSArray *) allBareRecipients
{
NSMutableArray *bareRecipients;
NSEnumerator *allRecipients;
NSString *recipient;
bareRecipients = [NSMutableArray array];
allRecipients = [[self allRecipients] objectEnumerator];
while ((recipient = [allRecipients nextObject]))
[bareRecipients addObject: [recipient pureEMailAddress]];
return bareRecipients;
}
- (NSException *) sendMail
{
NSException *error;
@@ -1284,7 +1299,7 @@ static BOOL showTextAttachmentsInline = NO;
{
message = [self mimeMessageAsData];
error = [[SOGoMailer sharedMailer] sendMailData: message
toRecipients: [self allRecipients]
toRecipients: [self allBareRecipients]
sender: [self sender]];
if (!error)
{