This queue is for tickets about the Net-IMAP-Simple CPAN distribution.

Report information
The Basics
Id:
130771
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
hamann.w [...] t-online.de
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Problem and feature suggestion
Date: 21 Oct 2019 11:50:20 -0000
To: bug-Net-IMAP-Simple@rt.cpan.org
From: hamann.w@t-online.de
Hi, I just installed this for the first time in order to do scripted access to a server requiring starttls. I am using 5.18.1, the Net-Imap-Simple is 1.2212. I have set tls version to tlsv11 It seems that in this situation the disabled ssl handshake prevents any useful work. (I tried perl debugger on internals - ssl write is not called from print, as I would have expected. Enabling the ssl handshake solves the problem BTW: the local IO::Socket::SSL does not like the suggested "SSLv3 TLSv1" ssl version; it expects colon for separator. The problem goes away when setting an explicit version in the new() call Feature suggestion: Since all ssl servers SHOULD offer at least AUTH PLAIN mechanism, this one is probably more common than LOGIN. This sSimple addition for auth was tested against outlook365 sub auth { my ( $self, $type, $user, $pass ) = @_; if(lc $type eq 'plain') { my $arg = encode_base64("\0$user\0$pass", ""); return $self->_process_cmd( cmd => [ AUTHENTICATE => qq[PLAIN $arg]], final => sub { 1 }, process => sub { }, ); } else { $self->errstr("only AUTH PLAIN currently supported\n"); return; } } Best regards Wolfgang Hamann


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.