Skip Menu |

This queue is for tickets about the Mail-Box-POP3 CPAN distribution.

Report information
The Basics
Id: 128916
Status: open
Priority: 0/
Queue: Mail-Box-POP3

People
Owner: Nobody in particular
Requestors: HOUSTON [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.004
Fixed in: (no value)



Subject: No means to set ssl_opts
Hello, I cannot find any way to set the ssl_opts for IO::Socket::SSL when using Mail::Box::POP3s. The Mail::Transport::POP3::login() sub just conditionally loads IO::Socket::SSL and then instantiates a socket from it with no facility to pass the options (such as SSL_ca_path, SSL_fingerprint, SSL_cipher_list, SSL_verify_mode and other such useful options). If there is such a facility, please let me know about it. Otherwise I will look to supply a PR which would provide it. Thanks, Pete
Subject: Re: [rt.cpan.org #128916] No means to set ssl_opts
Date: Fri, 22 Mar 2019 18:45:32 +0100
To: Pete Houston via RT <bug-Mail-Box-POP3 [...] rt.cpan.org>
From: Mark Overmeer <solutions [...] overmeer.net>
* Pete Houston via RT (bug-Mail-Box-POP3@rt.cpan.org) [190322 16:43]: Show quoted text
> Fri Mar 22 12:43:20 2019: Request 128916 was acted upon. > Transaction: Ticket created by HOUSTON > Queue: Mail-Box-POP3 > Subject: No means to set ssl_opts > > I cannot find any way to set the ssl_opts for IO::Socket::SSL when > using Mail::Box::POP3s. The Mail::Transport::POP3::login() sub just > conditionally loads IO::Socket::SSL and then instantiates a socket > from it with no facility to pass the options (such as SSL_ca_path, > SSL_fingerprint, SSL_cipher_list, SSL_verify_mode and other such useful > options).
There is a simple solution: IO::Socket::SSL::set_defaults() But I haven't met anyone who is using POP3 for a long time. Would you be so kind to test my cleanup (maintenance changes) to the code? I will add a way to cleanly set-up the socket as well. -- ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
Thanks for the pointer. I had tried to use set_defaults() before submitting the ticket but on testing further today I see that this does indeed work for a sufficiently modern IO::Socket::SSL. That is good enough for my purposes. TBH, the main reason for using POP for this was that the IMAP approach did not seem to implement rw mode fully. But POP will do the job anyway. What changes would you like me to test? The github repo doesn't seem to be newer than the 3.004 release.
Subject: Re: [rt.cpan.org #128916] No means to set ssl_opts
Date: Mon, 25 Mar 2019 23:26:52 +0100
To: Pete Houston via RT <bug-Mail-Box-POP3 [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
* Pete Houston via RT (bug-Mail-Box-POP3@rt.cpan.org) [190325 22:12]: Show quoted text
> Queue: Mail-Box-POP3 > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128916 > > > Thanks for the pointer. I had tried to use set_defaults() before > submitting the ticket but on testing further today I see that this does > indeed work for a sufficiently modern IO::Socket::SSL. That is good > enough for my purposes. > > TBH, the main reason for using POP for this was that the IMAP approach > did not seem to implement rw mode fully. But POP will do the job anyway.
Hm... I may need to try IMAP again... I use it read-only. Show quoted text
> What changes would you like me to test? The github repo doesn't seem > to be newer than the 3.004 release.
I can make the changes, to give a way to pass your own socket, but only when someone (you) is willing to test it. Do you have a little time on Wednesday? -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
Yes, I could do a little testing today, although since set_defaults is working for me now the drive behind it is lessened.
Subject: Re: [rt.cpan.org #128916] No means to set ssl_opts
Date: Wed, 27 Mar 2019 11:46:18 +0100
To: Pete Houston via RT <bug-Mail-Box-POP3 [...] rt.cpan.org>
From: Mark Overmeer <mark [...] nluug.nl>
* Pete Houston via RT (bug-Mail-Box-POP3@rt.cpan.org) [190327 10:27]: Show quoted text
> Queue: Mail-Box-POP3 > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=128916 > > > Yes, I could do a little testing today, although since set_defaults > is working for me now the drive behind it is lessened.
I have attempted to add the requested feature, but it is complex... the automatic recovery is not capable in handling external mangling... So, I have decided only to document the 'set_defaults' with the 'use_ssl' option. -- Tahnks for reporting, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net