http://www.perlmonks.org?node_id=318102


in reply to Mail::IMAPClient wont get messages

Although IMAP::Client works quite well on its own, you may consider to use Mail::Box as abstraction level. Mail::Box supports various folder formats and hides implementation differences. See its website. You can simply use messages on the remote IMAP4 server as if they are local.

 use Mail::Box::IMAP4;
 my $f = Mail::Box::IMAP4->new(host => ..., username => ...,
      password => ..., folder => ...) or die;

 foreach my $msg ($f->messages) ...
 $f->message(1)->delete;
 $f->message(3)->head->add('X-Handler' => 'my own');

Replies are listed 'Best First'.
Re: Re: Mail::IMAPClient wont get messages
by RichardH (Sexton) on Jan 01, 2004 at 14:23 UTC
    I looked through the documentation for this on cpan, and it seemed that the imap support was experimental. Have you used it and had success with it? I'm going to give it a try, but cautiously.
    Richard