m

mail(1)

mail(1)

mail treats a line consisting solely of a dot ( . ) as the end of the message, except when the rmail -dcommand is used.

The maximum allowable line length in mail messages is BUFSIZ bytes as de®ned 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 BUFSIZ characters.

Using two separate mail programs to access the same mail ®le 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 ®elds 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

Lock for mail directory

/var/mail/*.lock

dead.letter

Unmailable text

/tmp/ma*

Temporary ®le

$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 mail®le (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

Section 1492

− 3 −

HP-UX Release 11i: December 2000