From c2f7a076ff7a8f701e227d7ed47dfb8e26357136 Mon Sep 17 00:00:00 2001 From: Patrick Figel Date: Wed, 12 Feb 2020 21:27:02 +0100 Subject: [PATCH] dev/mail#59 - Fix use of useXOAUTH2 constant instead of var This fixes an issue where a missing $ before the useXOAUTH2 variable prevents IMAP authentication with XOAUTH2 from working. --- CRM/Mailing/MailStore/Imap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/MailStore/Imap.php b/CRM/Mailing/MailStore/Imap.php index df938a6a17..c24943e2db 100644 --- a/CRM/Mailing/MailStore/Imap.php +++ b/CRM/Mailing/MailStore/Imap.php @@ -56,7 +56,7 @@ class CRM_Mailing_MailStore_Imap extends CRM_Mailing_MailStore { 'uidReferencing' => TRUE, ]; $this->_transport = new ezcMailImapTransport($host, NULL, $options); - if (useXOAUTH2) { + if ($useXOAUTH2) { $this->_transport->authenticate($username, $password, ezcMailImapTransport::AUTH_XOAUTH2); } else { -- 2.25.1