MHArc::MailUtil - General mail-related utilities for mail archiving system. |
MHArc::MailUtil - General mail-related utilities for mail archiving system.
use MHArc::MailUtil;
This module contains a collection of mail-related utility routines.
The following module variables can be set to affect the behavior of the utility routines:
$Debug
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)
$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.
Functions in this module assume that the MHonArc libraries have already been loaded.
$Id: MailUtil.pm,v 1.3 2002/09/13 07:24:18 ehood Exp $
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. |