powerman has asked for the wisdom of the Perl Monks concerning the following question:
CPAN module, or separate perl script, or some standard unix command line util which can be used from perl script is acceptable.
Word reliable in my question mean:
Here is example interface which show email parsing result I need:
# $mime_info = mime_unpack($mime); # $mime_info = { # Subject => $subject, # Date => $date, # From => $from, # Reply_to => $reply_to, # To => \@to, # Cc => \@cc, # encrypted => $true, # signed_by => { $gpgid1 => $true, $gpgid2 => $true }, # headers => "From: ...\nTo: ...\n...\n", # type => "multipart/mixed", # body => [ # { # headers => "...", # type => "multipart/related", # body => [ # { # headers => "...", # type => "multipart/alternative", # body => [ # { # headers => "...", # type => "text/plain", # charset => "koi8-r", # body => "...", # }, # { # headers => "...", # type => "text/html", # charset => "koi8-r", # body => "...", # }, # ], # }, # { # headers => "...", # type => "image/gif", # name => 722370018427e0cb56ef03.gif", # cid => "000a01c69f03$d48fa5e0$0202a8c0@m" # body => "...", # }, # ], # }, # { # headers => "...", # type => "image/jpeg", # filename => "_devochka.jpeg", # body => "...", # }, # ], # } # die "message must be encrypted" if !$email_info->{gpg}{encrypted}; # die "message must by signed by authorized developer" # if !$email_info->{gpg}{signed_by}{ $fingerprint{powerman} } # && !$email_info->{gpg}{signed_by}{ $fingerprint{nikita} } # ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reliable email parsing
by xdg (Monsignor) on Sep 13, 2006 at 12:10 UTC | |
by powerman (Friar) on Sep 13, 2006 at 12:35 UTC | |
by adamk (Chaplain) on Sep 14, 2006 at 02:59 UTC | |
by DrHyde (Prior) on Sep 14, 2006 at 10:00 UTC | |
by powerman (Friar) on Sep 14, 2006 at 20:00 UTC | |
by Fletch (Bishop) on Sep 14, 2006 at 20:25 UTC | |
| |
| |
|
Re: Reliable email parsing
by davorg (Chancellor) on Sep 13, 2006 at 11:51 UTC | |
by powerman (Friar) on Sep 13, 2006 at 12:00 UTC | |
by davorg (Chancellor) on Sep 13, 2006 at 12:28 UTC | |
by davorg (Chancellor) on Sep 13, 2006 at 12:05 UTC | |
by dave0 (Friar) on Sep 14, 2006 at 03:42 UTC | |
|
Re: Reliable email parsing
by dave0 (Friar) on Sep 13, 2006 at 13:53 UTC | |
by jdtoronto (Prior) on Sep 13, 2006 at 17:23 UTC | |
by mattk (Pilgrim) on Sep 16, 2006 at 13:49 UTC | |
|
Re: Reliable email parsing
by ruoso (Curate) on Sep 15, 2006 at 08:39 UTC |