Re: Mail::Transport::IMAP4 bug

Aaron Spanik <[email protected]> Wed, 25 May 2005 09:10:35 -0300
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization Acadiau University Computing Services
Message-ID <[email protected]>
On Wed, 25 May 2005 10:59:18 +0200
Mark Overmeer <[email protected]> wrote:

> * Raul Dias ([email protected]) [050525 06:41]:
> > When a Mail::Box::IMAP4 is created, the Mail::Transport::IMAP4 
> > calls authentication() during init() with the authentication form
> > choosen (or AUTO).
> > 
> > The problem is that this has not being saved in the first call, 
> > because it returns undef because of a imapClient() call.
> 
> Well, close (enough)  The problem is caused by the fact that I wanted
> to reduce the list of specified authentication method with the list
> supported by the server.  But I do that before there is a contact with
> the server... which doesn't work.
> 
> Now I also understand why I saw people creating their own IMAPClient
> object before opening the folder.  The Mail::Box::IMAP4 folder type
> is capable of creating it transparently, so why the hassle, I thought.
> Probably because of the problem you highlight here. Thanks for
reporting
> it: my test-suite at home is unsufficient.

Thanks for the fix.  I was able to read the code well enough to sort of
figure out what was going wrong (I caught the pre-auth call to figure
out the available authentication methods), but I'm not enough of a Perl
hacker to figure out the fix on my own.  I ended up deciding the problem
was that the IMAP server I was running against does not advertise
"CAPABILITY" (cyrus 2.0.17).

Now I can clean up my own code significantly.

Thanks again.

/a

-- 
Aaron Spanik
Senior Unix Systems Administrator, Computing Services
Acadia University  Wolfville, NS  Canada  B4P 2R6
phone: (902) 585-1121  fax: (902) 585-1066