MHArc::MailUtil - General mail-related utilities for mail archiving system.


NAME

MHArc::MailUtil - General mail-related utilities for mail archiving system.


SYNOPSIS

  use MHArc::MailUtil;


DESCRIPTION

This module contains a collection of mail-related utility routines.


VARIABLES

The following module variables can be set to affect the behavior of the utility routines:

$Debug
If set to a true value, routines will print out debuging information.


ROUTINES

By default, no routines are exported into the calling namespace. Routines in this module can be imported by explicitly listing the routines to import in the use declaration:

  use MHArc::MailUtil qw( extract_date );

The following routines are availale:

extract_date($fields, @date_fields)
Extract the date from message header fields represented by $fields. Any additional arguments are treated as message fields names (which should be lowercase names) to examine to find the date. If no fields names are specified, than the following fields are checked in order: Received, Delivery-Date, and Date.

The return value of this function is the date of the message in Unix time format: the same as what is returned by Perl's builtin time function.


DEPENDENCIES

Functions in this module assume that the MHonArc libraries have already been loaded.


VERSION

$Id: MailUtil.pm,v 1.3 2002/09/13 07:24:18 ehood Exp $


AUTHOR

Earl Hood, earl@earlhood.com

This module is part of the mharc archiving system and comes with ABSOLUTELY NO WARRANTY and may be copied only under the terms of the GNU General Public License, which may be found in the mharc distribution.

 MHArc::MailUtil - General mail-related utilities for mail archiving system.