Re: Bug in Mail::Transport::IMAP4

"Max Waterman" <[email protected]> Thu, 25 May 2006 14:37:10 +0800
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
I have hit this problem too. Applying your fix seemed to stop it from
happening, but revealed a lot of similar errors[1].

However, I am really only trying to use IMAP because a script that was
working fine and was connecting to a pop3 server, has now stopped
working. It now gives these error messages :

ERROR: Server at mail1.company.com:110 does not seem to be talking POP3.
ERROR: Cannot create POP3 client for
pop3://[email protected]@mail1.company.com:110.
WARNING: Folder does not exist, failed opening pop3 folder
pop3://[email protected]@mail1.company.com:110.
Could not open pop3 mailbox:Connection reset by peer at
./processEmail.pl line 53.

However, if I configure Mozilla Thunderbird to use the same settings, it
works fine.

Does anyone have any clues on how to debug this?

Max.

[1]  :
Use of uninitialized value in concatenation (.) or string at
/usr/lib/perl5/site_perl/5.8.6/Mail/IMAPClient.pm line 2604.
Use of uninitialized value in split at
/usr/lib/perl5/site_perl/5.8.6/Mail/IMAPClient.pm line 2629.
Use of uninitialized value in hash element at
/usr/lib/perl5/site_perl/5.8.6/Mail/IMAPClient.pm line 2699.
Use of uninitialized value in concatenation (.) or string at
/usr/lib/perl5/site_perl/5.8.6/Mail/Box/IMAP4.pm line 160.
WARNING: Message  disappeared from /var/spool/mail/davidmaxwaterman.
Can't call method "get" on an undefined value at
/usr/lib/perl5/site_perl/5.8.6/Mail/Message/Head/Delayed.pm line 57.
Use of uninitialized value in string at /usr/lib/perl5/5.8.6/overload.pm
line 97.
Use of uninitialized value in hash element at
/usr/lib/perl5/site_perl/5.8.6/Mail/Transport/IMAP4.pm line 364.
Use of uninitialized value in substitution (s///) at
/usr/lib/perl5/site_perl/5.8.6/Mail/Transport/IMAP4.pm line 368.
Use of uninitialized value in hash element at
/usr/lib/perl5/site_perl/5.8.6/Mail/Transport/IMAP4.pm line 369.

On Wed, 17 May 2006 23:08:20 -0400, "Scott Bronson"
<[email protected]> said:
> When I try to log into my dovecot imap server, I get:
> 
> Can't use string ("PLAIN") as an ARRAY ref while "strict refs" in use
> at /usr/local/share/perl/5.8.7/Mail/Transport/IMAP4.pm line 97.
> 
> I've included a patch that appears to fix it.  Any chance of getting
> this applied?
> 
> Thanks,
> 
>     - Scott
>