For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > April 2007 > How to print just numbers includes in Subject using POP3Client Module.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to print just numbers includes in Subject using POP3Client Module.
eng.john84@gmail.com

2007-04-09, 9:57 pm

How to print just numbers includes in Subject using POP3Client
Module.
Please Help

use Mail::POP3Client;


$pop = new Mail::POP3Client( USER => "xxxxxxxxxxxxxxxxx",
PASSWORD => "xxxxxxxxxx",
HOST => "xxxxxxxxxx" ),
TIMEOUT => 1;
for ($i = 1; $i <= $pop->Count(); $i++) {
foreach ( $pop->Head( $i ) ) {
/^(From|Subject):\s+/i and print $_, "\n";
}
print "\n";
sleep 5;
}

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com