Re: Mail::Box::IMAP4

Mark Overmeer <[email protected]> Wed, 22 Sep 2004 17:47:52 +0200
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* [email protected] ([email protected]) [040922 16:36]:
> > No, you only login at open().  Registration is available from the moment
> > that the manager is created.
> 
> But the code that I tested didn't have a login to the imap server until
> after the registertype was committed.  The registration too 1 minute to do
> for the IMAP.

Should take more than a few milli-seconds: it only executes:

 sub registerType($$@)
 {   my ($self, $name, $class, @options) = @_;
     unshift @{$self->{MBM_folder_types}}, [$name, $class, @options];
     $self;
 }

> I'm not sure that this would be improved by simply adding it to the
> base_folder_type array...  I'm missing something...

Only saves you the need to register the folder type explicitly
-- 
               MarkOv

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