Mail::MboxParser

Mail::MboxParser is a read-only access to UNIX-mailboxes.
Download

Mail::MboxParser Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tassilo von Parseval
  • Publisher web site:
  • http://search.cpan.org/~vparseval/

Mail::MboxParser Tags


Mail::MboxParser Description

Mail::MboxParser is a read-only access to UNIX-mailboxes. Mail::MboxParser is a read-only access to UNIX-mailboxes.SYNOPSIS use Mail::MboxParser; my $parseropts = { enable_cache => 1, enable_grep => 1, cache_file_name => 'mail/cache-file', }; my $mb = Mail::MboxParser->new('some_mailbox', decode => 'ALL', parseropts => $parseropts); # ----------- # slurping for my $msg ($mb->get_messages) { print $msg->header->{subject}, "n"; $msg->store_all_attachments(path => '/tmp'); } # iterating while (my $msg = $mb->next_message) { print $msg->header->{subject}, "n"; # ... } # we forgot to do something with the messages $mb->rewind; while (my $msg = $mb->next_message) { # iterate again # ... } # subscripting one message after the other for my $idx (0 .. $mb->nmsgs - 1) { my $msg = $mb->get_message($idx); } Requirements: · Perl


Mail::MboxParser Related Software