chore(sogo-ealarms-notify): improve arguments parsing

Fixes #5197
This commit is contained in:
Francis Lachapelle
2020-11-11 11:58:30 -05:00
parent c600aa261c
commit 64f0519f7b
3 changed files with 24 additions and 10 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
+ (SOGoMailer *) mailerWithDomainDefaults: (SOGoDomainDefaults *) dd;
- (id) initWithDomainDefaults: (SOGoDomainDefaults *) dd;
- (BOOL) requiresAuthentication;
- (NSException *) sendMailData: (NSData *) data
toRecipients: (NSArray *) recipients
sender: (NSString *) sender
+5
View File
@@ -181,6 +181,11 @@
[super dealloc];
}
- (BOOL) requiresAuthentication
{
return ![mailingMechanism isEqualToString: @"sendmail"] && authenticationType;
}
- (NSException *) _sendmailSendData: (NSData *) mailData
toRecipients: (NSArray *) recipients
sender: (NSString *) sender