Subject: | Bug in handling authentication |
Date: | Tue, 5 Jun 2018 15:32:11 +0000 |
To: | "bug-Mail-Sendmail-Enhanced [...] rt.cpan.org" <bug-Mail-Sendmail-Enhanced [...] rt.cpan.org> |
From: | Agnieszka Zbylut <amz [...] open.ch> |
Dear FRANCISCO,
Here are the information related to my setup:
Distribution: Debian GNU/Linux 8.7 (jessie)
Perl version: v5.20.2
Operation system: Linux xxx 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux
I wanted to skip authentication so I created object with ‘required’ option = 0 and it was changed to 1 (default value) because of wrong check:
$mail->{required} ||= 1;
And later in creating mail, auth, required hash.
In this situation it doesn’t matter what is the value of ‘required’ because it will always be 1.
Please see the code, proposing new solution, attached to this e-mail. (changes were made to line 43-45 and 142)
Please reach out to me if I didn’t describe it clear enough.
Kind Regards,
Agnieszka Zbylut
Message body is not shown because sender requested not to inline it.