in reply to getting list of all POP3 messages
#!/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 | |
|
Re: Re: getting list of all POP3 messages
by KZ (Initiate) on Jan 27, 2004 at 05:27 UTC |