Have you tried Mail::MboxParser ?
Here is the sample code from the module
artistmy $mb = Mail::MboxParser->new('some_mailbox', decode => 'ALL'); # ----------- # slurping for my $msg ($mb->get_messages) { print $msg->header->{subject}, "\n"; $msg->store_all_attachments('/tmp'); } # iterating while (my $msg = $mb->next_message) { print $msg->header->{subject}, "\n"; # ... }
In reply to Re: UNIX Mail Box and Mail Parsing
by artist
in thread UNIX Mail Box and Mail Parsing
by draconis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |