mailx ( 1 ) USER COMMANDSmailx ( 1 )


NAME

mailx - send and receive mail

SYNOPSIS

mailx [ options ] [ address ... ]

DESCRIPTION

mailx is a mail processing command. The options place mailx in either send or receive mode. Send mode composes and sends messages from text on the standard input. Receive mode provides both an interactive command language and non-interactive command line actions. Receive mode, on startup, reads commands and variable settings from the file $HOME/.mailxrc, if it exists.

mailx provides commands for saving, deleting and responding to messages. Message composition supports editing, reviewing and other modifications as the message is entered.

Incoming mail is stored in one or more unspecified locations for each user, collectively called the system mailbox for that user. When mailx is invoked in receive mode, the system mailbox is searched by default.

For additional help run mailx with no options or operands, and then enter the help command at the interactive prompt.

OPTIONS

-A, --articles
Treat mail folders as netnews article.
-F, --followup
Automatically include the previous message (followup) text when composing a reply.
-H, --headers
List all headers and exit.
-I, --interactive
Force interactive receive mode.
-N, --list-headers
List a screen of headers on receive mode startup. On by default; -N means --nolist-headers.
-P, --pipe
Coprocess receive mode from a pipe.
-Q, --query=count
List the status character and sender address for the count most recent messages, one line per message, and exit. See --status for message status characters details.
-S, --status
List the status character and sender address for all messages, one line per message, and exit. The message status characters are:
M
To be saved in mbox and marked for delete on exit.
N
New message.
P
Preserved and will not be deleted.
R
Already read.
U
Unread message from previous session.
X
Possible spam.
*
Saved to a folder and marked for delete on exit.
-T, --oldnews=file
Read/deleted netnews article names are appended to file
-b, --bcc
Prompt for the blind carbon copy recipient list when composing messages.
-c, --cc
Prompt for the carbon copy recipient list when composing messages.
-d, --debug
Enable implementation specific debug output.
-e, --check
Silently exit 0 if there is mail, 1 otherwise.
-f, --folder[=folder]
Mail is read from folder instead of the default user mailbox. The option value may be omitted. The default value is $HOME/mbox.
-i, --ignore-interrupts
Ignore interrupts.
-n, --master
Read commands from /etc/mailx.rc on receive mode startup. On by default; -n means --nomaster.
-o, --set=name=value
Set name=value options. The interactive mail command help set all lists details for each option.
-r, --address=address
Set the reply to header address to address.
-s, --subject=text
The non-interactive send mode subject text.
-t, --sendheaders
Check for headers in send mode message text.
-u, --user=user
Pretend to be this user in send mode. For debugging.
-v, --verbose
Enable implementation specific send mode verbose trace.

SEE ALSO

/bin/mail(1), Mail(1)

IMPLEMENTATION

version
mailx (AT&T/BSD) 9.9 2006-04-17
author
Kurt Shoens (UCB)
author
gsf
copyright
Copyright © 1978-2008 The Regents of the University of California and AT&T
license
http://www.opensource.org/licenses/bsd-license