From: | Lfzhao [...] aol.com |
Date: | Wed, 27 Oct 2004 16:32:55 EDT |
Subject: | (no subject) |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
Hi David,
I am a developer that builds small tools used inside our company. We have
downloaded your IMAPClient.pm 2.2.9 and use it to fetch emails from our IMAP
server.
We did not set debug flag by new() or by $imap->Debug() because we found
that it will put whole emails into our log file. The way we doing debug is
checking $imap->LastError after each operation. If it is true, write the error
string inside $@ into the log file.
There are two things I think may be bugs and want to report to you.
1. $imap->LastError remains true if previous operation sets it to true.
For example, I call message_string to fetch a list of messages from a
mailbox. If one message caused a problem, the $imap->LastError remains true even
the next call of message_string fetched message successful ( $@ is empty at
the same time, that is good).
2. Sometimes $@ contains the message itself instead of the error.
Sometimes, when $imap->LastError is set to true by message_string, we found the
whole email message was written into the log file instead of error message. Do
you know why this is happening?
Thank you very much,
Lanfang Zhao
_lfzhao@aol.com_ (mailto:lfzhao@aol.com)