mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 00:45:09 +00:00
Comment out sendMail method in SOGoDraftObject and replace its sole known usage by sendMailAndCopyToSent.
In a 2011-09-26 commit (in Changelog.old), I understand the author wanted to phase sendMail out and replace it by sendMailAndCopyToSent. Since there are compilation warnings related to sendMail, removing the sendMail method and replacing the sole call to it seemed like the cleanest way.
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
- (NSArray *) allBareRecipients;
|
||||
|
||||
- (NSException *) delete;
|
||||
- (NSException *) sendMail;
|
||||
/* - (NSException *) sendMail; */
|
||||
- (NSException *) sendMailAndCopyToSent: (BOOL) copyToSent; /* default: YES */
|
||||
- (NSException *) save;
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
|
||||
#import "SOGoDraftObject.h"
|
||||
|
||||
|
||||
static NSString *contentTypeValue = @"text/plain; charset=utf-8";
|
||||
static NSString *htmlContentTypeValue = @"text/html; charset=utf-8";
|
||||
static NSString *headerKeys[] = {@"subject", @"to", @"cc", @"bcc",
|
||||
@@ -1782,6 +1783,7 @@ static NSString *userAgent = nil;
|
||||
//
|
||||
//
|
||||
//
|
||||
/*
|
||||
- (NSException *) sendMail
|
||||
{
|
||||
SOGoUserDefaults *ud;
|
||||
@@ -1843,6 +1845,7 @@ static NSString *userAgent = nil;
|
||||
}
|
||||
return [self sendMailAndCopyToSent: YES];
|
||||
}
|
||||
*/
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
@@ -869,7 +869,7 @@ static NSArray *infoKeys = nil;
|
||||
{
|
||||
error = [self validateForSend];
|
||||
if (!error)
|
||||
error = [co sendMail];
|
||||
error = [co sendMailAndCopyToSent: false];
|
||||
else
|
||||
error = [self failedToSaveFormResponse: [error reason]];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user