Re: Mail::Box::IMAP4

Mark Overmeer <[email protected]> Wed, 22 Sep 2004 11:45:56 +0200
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* Tom Allison ([email protected]) [040922 11:21]:
> Mark Overmeer wrote:
> Mail::Box version is 2.055 if I read it correctly from the debian 
> unstable package tree.

Wow, that's an old version ;-)

The best docs are found at http://perl.overmeer.net/mailbox/html/

> my $mgr = Mail::Box::Manager->new();
> my $folder=$mgr->open('INBOX'
>                        , folder_types => 'imap'
                           ^^^ must be:
                         , type         => 'imap'

> Further analysis shows that
> print join("\n", $mgr->folderTypes),"\n";
> does not return an imap foldertype
> (maildir mbox mh pop pop3)

Yeh, fun... I see it, imap is still lacking in the list for autoloading
modules is Mail::Box::Manager:

 my @basic_folder_types =
  ( ...
  , [ imap    => 'Mail::Box::IMAP4'   ]
  , [ imap4   => 'Mail::Box::IMAP4'   ]
  );

> My assumption is that the ~60 second 
> "hang" is a network timeout of some sort that I should be able to 
> improve if I was sure which fine manual it's in (Mail::Box::IMAP4?).

Sometimes that has to do with a failing login-procedure, probably
due to the need for a SSL encryption.  I have seen how IMAP/IMAPTalk.pm
solves that, but I lack the time to get it in.  IMAP4 support in MailBox
needs users...

Today, a new release will come to CPAN, which is faster, and contains
this fix.
-- 
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net