SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from Fedora 28 perl-Mail-Mbox-MessageParser-1.5105-11.fc28.noarch.rpm

Mail::Mbox::MessageParser::Grep

Section: User Contributed Perl Documentation (3)
Updated: 2015-04-18
Index 

NAME

Mail::Mbox::MessageParser::Grep - A GNU grep-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,      'enable_grep' => 1,    } );  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;  }
 

DESCRIPTION

This module implements a GNU grep-based mbox folder reader. It can only beused when GNU grep is installed on the system. Users must not instantiate thisclass directly---use Mail::Mbox::MessageParser instead. The base MessageParsermodule will automatically manage the use of grep and non-grep implementations. 

METHODS AND FUNCTIONS

The following methods and functions are specific to theMail::Mbox::MessageParser::Grep package. For additional inherited ones, seethe Mail::Mbox::MessageParser documentation.
$ref = new( { 'file_name' => <mailbox file name>, 'file_handle' => <mailbox file handle> });
    <file_name> - The full filename of the mailbox    <file_handle> - An opened file handle for the mailbox

The constructor for the class takes two parameters. The file_name parameteris the filename of the mailbox. The file_handle argument is the opened filehandle to the mailbox.

Returns a reference to a Mail::Mbox::MessageParser object, or a stringdescribing the error.

 

BUGS

No known bugs.

Contact davidAATTcoppit.org for bug reports and suggestions. 

AUTHOR

David Coppit <davidAATTcoppit.org>. 

LICENSE

This code is distributed under the GNU General Public License (GPL) Version 2.See the file LICENSE in the distribution for details. 

HISTORY

This code was originally part of the grepmail distribution. Seehttp://grepmail.sf.net/ for previous versions of grepmail which included earlyversions of this code. 

SEE ALSO

Mail::Mbox::MessageParser


 

Index

NAME
SYNOPSIS
DESCRIPTION
METHODS AND FUNCTIONS
BUGS
AUTHOR
LICENSE
HISTORY
SEE ALSO

This document was created byman2html,using the manual pages.