1MAILX(1)                         User Commands                        MAILX(1)
2
3
4

NAME

6       mailx - send and receive Internet mail
7

SYNOPSIS

9       mailx [-BDdEFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-
10              addr] [-r from-addr] [-h hops] [-A account] [-S vari‐
11              able[=value]] to-addr . . .
12       mailx [-BDdeEHiInNRv~] [-T name] [-A account] [-S variable[=value]] -f
13              [name]
14       mailx [-BDdeEinNRv~] [-A account] [-S variable[=value]] [-u user]
15

DESCRIPTION

17       Mailx is an intelligent mail processing system,  which  has  a  command
18       syntax  reminiscent  of  ed(1)  with lines replaced by messages.  It is
19       based on Berkeley Mail 8.1, is intended to provide the functionality of
20       the  POSIX  mailx  command, and offers extensions for MIME, IMAP, POP3,
21       SMTP, and S/MIME.  Mailx provides  enhanced  features  for  interactive
22       use,  such  as  caching  and  disconnected  operation for IMAP, message
23       threading, scoring, and filtering.  It is also usable as a  mail  batch
24       language, both for sending and receiving mail.
25
26       The following options are accepted:
27
28       -A name
29              Executes  an  account  command  (see  below)  for name after the
30              startup files have been read.
31
32       -a file
33              Attach the given file to the message.
34
35       -B     Make standard input and standard output line-buffered.
36
37       -b address
38              Send blind carbon copies to list.  List should be a  comma-sepa‐
39              rated list of names.
40
41       -c address
42              Send carbon copies to list of users.
43
44       -D     Start  in disconnected mode; see the description for the discon‐
45              nected variable option.
46
47       -d     Enables debugging messages and disables the actual  delivery  of
48              messages.  Unlike -v, this option is intended for mailx develop‐
49              ment only.
50
51       -e     Just check if mail is present in the system  mailbox.   If  yes,
52              return an exit status of zero, else, a non-zero value.
53
54       -E     If an outgoing message does not contain any text in its first or
55              only message part, do not  send  it  but  discard  it  silently,
56              effectively   setting  the  skipemptybody  variable  at  program
57              startup.  This is  useful  for  sending  messages  from  scripts
58              started by cron(8).
59
60       -f [file]
61              Read  in the contents of the user's mbox (or the specified file)
62              for processing; when mailx is quit, it writes undeleted messages
63              back  to this file.  The string file is handled as describ