HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)
m
mail(1) mail(1)
mail treats a line consisting solely of a dot (
. ) as the end of the message, except when the rmail -d
command is used.
The maximum allowable line length in mail messages is 8 times that of
BUFSIZ bytes as defined in
/usr/include/stdio.h
. If line length exceeds this limit,
mail truncates the line starting at
beginning-of-line, and uses only the trailing 8 *
BUFSIZ characters.
Using two separate mail programs to access the same mail file simultaneously (usually inadvertently from
two separate windows) can cause unpredictable results.
Some sites that have programs that adhere strictly to RFC-822 will fail to deliver a message if any of the
recipient fields below is missing.
To:
resent-to:
cc:
resent-cc:
bcc:
resent-bcc:
You can add the RFC-822 commands into the mail program buffer/editor. For instance:
mail user1@domain.com
From: user2@domain.com
Subject: This is a test
To: test_address@domain.com
This is a test
FILES
/var/mail/*.lock Lock for mail directory
dead.letter Unmailable text
/tmp/ma* Temporary file
$MAIL Variable containing path name of mailfile
$HOME/mbox
Saved mail
/etc/passwd To identify sender and locate persons
/var/mail Directory for incoming mail (mode 775, group ID mail)
/var/mail/ user Incoming mail for user; that is, the mailfile (mode 660, group
ID mail)
SEE ALSO
login(1), mailx(1), uucp(1), write(1).
STANDARDS CONFORMANCE
mail: SVID2, SVID3, XPG2, XPG3
rmail: SVID2, SVID3
HP-UX 11i Version 2: December 2007 Update − 3 − Hewlett-Packard Company 623