in reply to UNIX Mail Box and Mail Parsing
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"; # ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: UNIX Mail Box and Mail Parsing
by draconis (Scribe) on May 21, 2003 at 21:13 UTC | |
by draconis (Scribe) on May 21, 2003 at 21:31 UTC |