Restore SOGoMailAddOutgoingAddresses functionality

pull/27/merge
Francis Lachapelle 2016-08-12 11:38:05 -04:00
parent 3d281c2f39
commit 287c57c994
4 changed files with 16 additions and 5 deletions

12
NEWS
View File

@ -1,3 +1,15 @@
3.1.6 (2016-MM-DD)
------------------
New features
-
Enhancements
-
Bug fixes
- [web] restored functionality to save unknown recipient emails to address book on send
3.1.5 (2016-08-10) 3.1.5 (2016-08-10)
------------------ ------------------

View File

@ -114,7 +114,7 @@
- (NSArray *) allBareRecipients; - (NSArray *) allBareRecipients;
- (NSException *) delete; - (NSException *) delete;
/* - (NSException *) sendMail; */ - (NSException *) sendMail;
- (NSException *) sendMailAndCopyToSent: (BOOL) copyToSent; /* default: YES */ - (NSException *) sendMailAndCopyToSent: (BOOL) copyToSent; /* default: YES */
- (NSException *) save; - (NSException *) save;

View File

@ -58,6 +58,7 @@
#import <NGCards/NGVCard.h> #import <NGCards/NGVCard.h>
#import <Contacts/SOGoContactFolder.h>
#import <Contacts/SOGoContactFolders.h> #import <Contacts/SOGoContactFolders.h>
#import <Contacts/SOGoContactGCSEntry.h> #import <Contacts/SOGoContactGCSEntry.h>
@ -1823,7 +1824,6 @@ static NSString *userAgent = nil;
// //
// //
// //
/*
- (NSException *) sendMail - (NSException *) sendMail
{ {
SOGoUserDefaults *ud; SOGoUserDefaults *ud;
@ -1838,7 +1838,7 @@ static NSString *userAgent = nil;
SOGoContactGCSEntry *newContact; SOGoContactGCSEntry *newContact;
NGMailAddress *parsedRecipient; NGMailAddress *parsedRecipient;
NGMailAddressParser *parser; NGMailAddressParser *parser;
SOGoContactFolder *folder; SOGoFolder <SOGoContactFolder> *folder;
NGVCard *card; NGVCard *card;
int i; int i;
@ -1885,7 +1885,6 @@ static NSString *userAgent = nil;
} }
return [self sendMailAndCopyToSent: YES]; return [self sendMailAndCopyToSent: YES];
} }
*/
// //
// //

View File

@ -864,7 +864,7 @@ static NSArray *infoKeys = nil;
{ {
error = [self validateForSend]; error = [self validateForSend];
if (!error) if (!error)
error = [co sendMailAndCopyToSent: YES]; error = [co sendMail];
else else
error = [self failedToSaveFormResponse: [error reason]]; error = [self failedToSaveFormResponse: [error reason]];
} }