in reply to parsing and printing e-mail
use strict; use warnings; use Email::MIME; use Mail::POP3Client; my $pop = new Mail::POP3Client( USER => "my\@email.address", PASSWORD => "passwordxxxxx", HOST => "mail.mydomain.com" ); for( my $i = 1; $i <= $pop->Count(); $i++) { my $body = $pop->Body($i); my $parsed = Email::MIME->new($body); my $decoded = $parsed->body; print "<p>$decoded<p><hr>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: parsing and printing e-mail
by keiusui (Monk) on Dec 17, 2009 at 19:55 UTC | |
by gmargo (Hermit) on Dec 17, 2009 at 23:05 UTC | |
by keiusui (Monk) on Dec 21, 2009 at 05:36 UTC | |
by afoken (Chancellor) on Dec 21, 2009 at 20:24 UTC |