Skip Menu |

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

Report information
The Basics
Id: 72347
Status: resolved
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: PLOBBES [...] cpan.org
Requestors: jonathan [...] buhacoff.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.22
Fixed in: 3.30



Subject: Starttls array ref argument dereferenced twice
The documentation says that Starttls accepts an array reference with the arguments to pass on to the start_SSL method. However, when passing an array ref like $imap->Starttls([Timeout=>30]) I get the following error: Not a SCALAR reference at /opt/local/lib/perl5/site_perl/5.12.3/Mail/IMAPClient.pm line 426 Because on line 426 the Starttls argument is first dereferenced as a scalar (incorrect) and THEN dereferenced as an array. Cannot just fix it by passing $imap->Starttls(\[Timeout=>30]) because then it won't pass the ref( $self->Starttls ) eq "ARRAY" check on the previous line (it would get "REF", not "ARRAY"). The following patch is against 3.29: 426c426 < ? ( @${ $self->Starttls } ) --- Show quoted text
> ? ( @{ $self->Starttls } )
Thank you for the report, I've incorporated the fix and will be releasing version 3.30 soon!
Mail::IMAPClient 3.30 was released today with the patch for this bug, if you find the problem still exists in this release please reopen.