1Mail::Util(3)         User Contributed Perl Documentation        Mail::Util(3)
2
3
4

NAME

6       Mail::Util - mail utility functions
7

SYNOPSIS

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

DESCRIPTION

12       This package provides several mail related utility functions. Any func‐
13       tion required must by explicitly listed on the use line to be exported
14       into the calling package.
15
16       read_mbox( $file )
17
18       Read $file, a binmail mailbox file, and return a list of  references.
19       Each reference is a reference to an array containg one message.
20
21       maildomain()
22
23       Attempt to determine the current uers mail domain string via the fol‐
24       lowing methods
25
26       *  Look for the MAILDOMAIN enviroment variable, which can be set from
27       outside the program.
28       *  Look for a sendmail.cf file and extract DH parameter
29       *  Look for a smail config file and usr the first host defined in host‐
30       name(s)
31       *  Try an SMTP connect (if Net::SMTP exists) first to mailhost then
32       localhost
33       *  Use value from Net::Domain::domainname (if Net::Domain exists)
34
35       mailaddress()
36
37       Return a guess at the current users mail address. The user can force
38       the return value by setting the MAILADDRESS environment variable.
39
40       WARNING: When not supplied via the environment variable, <mailaddress>
41       looks at various configuration files and other environmental data.
42       Although this seems to be smart behavior, this is not predictable
43       enough (IMHO) to be used.  Please set the MAILADDRESS explicitly, and
44       do not trust on the "automatic detection", even when that produces a
45       correct address (on the moment)
46

AUTHOR

48       Graham Barr.
49
50       Maintained by Mark Overmeer <mailtools@overmeer.net>
51
53       Copyright (c) 2002-2003 Mark Overmeer, 1995-2001 Graham Barr. All
54       rights reserved. This program is free software; you can redistribute it
55       and/or modify it under the same terms as Perl itself.
56
57
58
59perl v5.8.8                       2007-05-11                     Mail::Util(3)
Impressum