![]() |
![]()
| ![]() |
![]()
NAMEMail::Mbox::MessageParser::Perl - A Perl-based mbox folder reader SYNOPSIS#!/usr/bin/perl use Mail::Mbox::MessageParser; my $filename = 'mail/saved-mail'; my $filehandle = new FileHandle($filename); my $folder_reader = new Mail::Mbox::MessageParser( { 'file_name' => $filename, 'file_handle' => $filehandle, } ); die $folder_reader unless ref $folder_reader; # Any newlines or such before the start of the first email my $prologue = $folder_reader->prologue; print $prologue; # This is the main loop. It's executed once for each email while(!$folder_reader->end_of_file()); { my $email = $folder_reader->read_next_email(); print $$email; } DESCRIPTIONThis module implements a Perl-based mbox folder reader. Users must not instantiate this class directly--use Mail::Mbox::MessageParser instead. The base MessageParser module will automatically manage the use of faster implementations if they can be used. METHODS AND FUNCTIONSThe following methods and functions are specific to the Mail::Mbox::MessageParser::Perl package. For additional inherited ones, see the Mail::Mbox::MessageParser documentation.
BUGSNo known bugs. Contact david@coppit.org for bug reports and suggestions. AUTHORDavid Coppit <david@coppit.org>. LICENSEThis code is distributed under the GNU General Public License (GPL) Version 2. See the file LICENSE in the distribution for details. HISTORYThis code was originally part of the grepmail distribution. See http://grepmail.sf.net/ for previous versions of grepmail which included early versions of this code. SEE ALSOMail::Mbox::MessageParser
|