Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Mail::IMAPClient wont get messages

by markov (Scribe)
on Jan 01, 2004 at 11:21 UTC ( #318102=note: print w/ replies, xml ) Need Help??


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');


Comment on Re: Mail::IMAPClient wont get messages
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://318102]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-10-25 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (145 votes), past polls