-A name
Executes an account command (see below) for name after the startup files have been read.
|
-a file
Attach the given file to the message.
|
-B Make standard input and standard output line-buffered.
|
-b address
Send blind carbon copies to list. List should be a comma-separated list of names.
|
-c address
Send carbon copies to list of users.
|
-D Start in disconnected mode; see the description for the disconnected variable option.
|
-d Enables debugging messages and disables the actual delivery of messages. Unlike -v, this option
is intended for mailx development only.
|
-e Just check if mail is present in the system mailbox. If yes, return an exit status of zero, else,
a non-zero value.
|
-E If an outgoing message does not contain any text in its first or only message part, do not send it
but discard it silently, effectively setting the skipemptybody variable at program startup. This
is useful for sending messages from scripts started by cron(8).
|
-f [file]
Read in the contents of the user's mbox (or the specified file) for processing; when mailx is
quit, it writes undeleted messages back to this file. The string file is handled as described for
the folder command below.
|
-F Save the message to send in a file named after the local part of the first recipient's address.
|
-H Print header summaries for all messages and exit.
|
-h hops
Invoke sendmail with the specified hop count. This option has no effect when SMTP is used for
sending mail.
|
-i Ignore tty interrupt signals. This is particularly useful when using mailx on noisy phone lines.
|
-I Shows the `Newsgroup:' or `Article-Id:' fields in the header summary. Only applicable in
combination with -f.
|
-n Inhibits reading /etc/nail.rc upon startup. This option should be activated for mailx scripts
that are invoked on more than one machine, because the contents of that file may differ between
them.
|
-N Inhibits the initial display of message headers when reading mail or editing a mail folder.
|
-q file
Start the message with the contents of the specified file. May be given in send mode only.
|
-r address
Sets the From address. Overrides any from variable specified in environment or startup files.
Tilde escapes are disabled. The -r address options are passed to the mail transfer agent unless
SMTP is used. This option exists for compatibility only; it is recommended to set the from
variable directly instead.
|
-R Opens any folders read-only.
|
-s subject
Specify subject on command line (only the first argument after the -s flag is used as a subject;
be careful to quote subjects containing spaces).
|
-S variable[=value]
Sets the internal option variable and, in case of a string option, assigns value to it.
|
-T name
Writes the `Message-Id:' and `Article-Id:' header fields of each message read in the file name.
Implies -I. Compressed files are handled as described for the folder command below.
|
-t The message to be sent is expected to contain a message header with `To:', `Cc:', or `Bcc:' fields
giving its recipients. Recipients specified on the command line are ignored.
|
-u user
Reads the mailbox of the given user name.
|
-v Verbose mode. The details of delivery are displayed on the user's terminal.
|
-V Print mailx's version and exit.
|