in reply to getting list of all POP3 messages

Well just in case you can't get Mail::Box::Manager going, here is something that works.
#!/usr/bin/perl use Mail::POP3Client; $pop = new Mail::POP3Client( USER => "zentara", PASSWORD => "bigsecret", HOST => "mail.whereever.com" ); for( $i = 1; $i <= $pop->Count(); $i++ ) { foreach( $pop->Head( $i ) ) { /^(From|Subject):\s+/i && print $_, "\n"; } } $pop->Close();

Replies are listed 'Best First'.
Re: Re: getting list of all POP3 messages
by KZ (Initiate) on Jan 27, 2004 at 05:10 UTC
    well, there is some problem. i have used 3 modules i.e Net::POP3 , Mail::Box::POP3 and Mail::POP3Client and all of them return the same no. of messages( that is not correct,not all messages are counted). i have no idea as to what the problem is, may be its gotta do something with the management of mails on our server, but i really need a solution to this problem plz help
Re: Re: getting list of all POP3 messages
by KZ (Initiate) on Jan 27, 2004 at 05:27 UTC
    well, there is some problem. i have used 3 modules i.e
    Net::POP3 ,
    Mail::Box::POP3
    Mail::POP3Client
    and all of them return the same no. of messages( that is not correct,not all messages are counted). i have no idea as to what the problem is, may be its gotta do something with the management of mails on our server, but i really need a solution to this problem
    plz help