in reply to How to parse outlook type attachment from inbox
The attachments, I assume, are the body part attachments which are probably HTML. To get the From address you should take it from the headers, like this:
jdtorontouse Mail::Header; my $header = $pop->Head($i); my $parsedhead = Mail::Header->new($header); chomp( my $subject = $parsedhead->get('Subject') ); print "Subject: $subject\n"; chomp( my $from = $parsedhead->get('From') ); print "From: $from\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to parse outlook type attachment from inbox
by perlCrazy (Monk) on Sep 22, 2006 at 11:39 UTC | |
by jdtoronto (Prior) on Sep 22, 2006 at 13:38 UTC | |
by perlCrazy (Monk) on Sep 22, 2006 at 15:23 UTC | |
by jdtoronto (Prior) on Sep 22, 2006 at 17:01 UTC | |
by perlCrazy (Monk) on Sep 23, 2006 at 08:47 UTC | |
|