From 62f64314c049c1b2b17ca7bc4f90bb50c2a734a2 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 17 Jan 2020 09:53:16 -0500 Subject: [PATCH] fix(mail): fix SMTP authentication when reporting spam/ham Fixes #4941 --- SoObjects/Mailer/SOGoMailFolder.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SoObjects/Mailer/SOGoMailFolder.m b/SoObjects/Mailer/SOGoMailFolder.m index 62a0bdb56..3530da6be 100644 --- a/SoObjects/Mailer/SOGoMailFolder.m +++ b/SoObjects/Mailer/SOGoMailFolder.m @@ -884,7 +884,6 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data) // We reached the limit or the end of the array if ((i%limit) == 0 || i == [uids count]-1) { - id authenticator; NGMimeMessageGenerator *generator; [messageToSend setBody: body]; @@ -892,13 +891,11 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data) generator = [[[NGMimeMessageGenerator alloc] init] autorelease]; data = [generator generateMimeFromPart: messageToSend]; - authenticator = [SOGoDAVAuthenticator sharedSOGoDAVAuthenticator]; - error = [[SOGoMailer mailerWithDomainDefaults: [[context activeUser] domainDefaults]] sendMailData: data toRecipients: [NSArray arrayWithObject: recipient] sender: [[identities objectAtIndex: 0] objectForKey: @"email"] - withAuthenticator: authenticator + withAuthenticator: [self authenticatorInContext: context] inContext: context]; if (error)