Manpages

Manpage of Mail::Util

Mail::Util

Section: User Contributed Perl Documentation (3)
Updated: 2002-03-23
Index
Return to Main Contents
 

NAME

Mail::Util - mail utility functions  

SYNOPSIS

use Mail::Util qw( ... );  

DESCRIPTION

This package provides several mail related utility functions. Any function required must by explicitly listed on the use line to be exported into the calling package.  

read_mbox( $file )

Read $file, a binmail mailbox file, and return a list of references. Each reference is a reference to an array containg one message.  

maildomain()

Attempt to determine the current uers mail domain string via the following methods

 Look for a sendmail.cf file and extract DH parameter
 Look for a smail config file and usr the first host defined in hostname(s)
 Try an SMTP connect (if Net::SMTP exists) first to mailhost then localhost
 Use value from Net::Domain::domainname (if Net::Domain exists)


 

mailaddress()

Return a guess at the current users mail address. The user can force the return value by setting $ENV{MAILADDRESS}  

AUTHOR

Graham Barr.

Maintained by Mark Overmeer <mailtools@overmeer.net>  

COPYRIGHT

Copyright (c) 1995-2001 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


 

Index

NAME
SYNOPSIS
DESCRIPTION
read_mbox( $file )
maildomain()
mailaddress()
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 10:50:56 GMT, April 16, 2024