pluckyshucker has asked for the wisdom of the Perl Monks concerning the following question:
This will output the head and body of the incoming message and '0' for zero adresses... i can't figure out why its not pulling anything into the new bounce object... Am I doing something obviously wrong? If you have a better way to handle bounced emails let me know!use Mail::POP3Client; use Mail::DeliveryStatus::BounceParser; my $pop = new Mail::POP3Client( USER => "undeliverables", PASSWORD => "password", HOST => "the.freekin.host"); for( $i = 1; $i <= $pop->Count(); $i++){ print $pop->Count()."\n"; $bounce = Mail::DeliveryStatus::BounceParser->new( $pop->HeadA +ndBody($i) ); if ($@) { print "Could not parse message\n"; }else{ if($bounce->is_bounce()){ print $pop->HeadAndBody($i); print $bounce->orig_message_id."\n"; print scalar $bounce->addresses; } } } $pop->Close();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail::DeliveryStatus::BounceParser
by pluckyshucker (Initiate) on Sep 26, 2003 at 13:39 UTC |