mailx (1) - Linux Manuals

mailx: process mail messages


mail.mailutils - process mail messages


mail.mailutils [,OPTION/...] [,address/...]
mail.mailutils [,OPTION/...] [,OPTION/...] [,file/]
mail.mailutils [,OPTION/...] ,--file /[,OPTION/...] [,file/]
mail.mailutils [,OPTION/...] ,--file=file /[,OPTION/...]


GNU mail -- process mail messages. If -f or --file is given, mail operates on the mailbox named by the first argument, or the user's mbox, if no argument given.
-A, --attach=,FILE/
attach FILE
-a, --append=,HEADER/: VALUE append given header to the message being sent
force multipart/alternative content type
attach from file descriptor FD
set the Content-Disposition filename parameter for the next --attach option
set the Content-Type name parameter for the next --attach option
set content type for subsequent --attach options
-E, --exec=,COMMAND/
execute COMMAND
-e, --exist
return true if mail exists
set encoding for subsequent --attach options
-F, --byname
save messages according to sender
-H, --headers
write a header summary and exit
-i, --ignore
ignore interrupts
-M, --[no-]mime
compose MIME messages
-N, --nosum
do not display initial header summary
-n, --norc
do not read the system mailrc file
-p, --print, --read
print all mail to standard output
-q, --quit
cause interrupts to terminate program
-r, --return-address=,ADDRESS/
use address as the return address when sending mail
-s, --subject=,SUBJ/
send a message with the given SUBJECT
skip attachments with empty body
-t, --to
read recipients from the message header
-u, --user=,USER/
operate on USER's mailbox
Global debugging settings
set Mailutils debugging level
--[no-]debug-line-info show source info with debugging messages
Configuration handling
load this configuration file; implies --no-config
check configuration file syntax and exit
verbosely log parsing of the configuration files
do not load site and user configuration files
do not load site-wide configuration file
do not load user configuration file
set configuration parameter
Informational options
show configuration file summary
show compilation options
-?, --help
give this help list
give a short usage message
-V, --version
print program version

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.


Report bugs to <bug-mailutils [at]>.
GNU Mailutils home page: <>
General help using GNU software: <>


Copyright © 2007-2019 Free Software Foundation, inc. License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Improved mailx versions: heirloom mailx and s-nail.


The complete GNU mailutils documentation is maintained as a Texinfo manual. If the mailutils-doc package is installed, the command
info mailutils

should give you access to the complete manual.
You can also find this manual online in the GNU mailutils webpage:
Please note this manpage was automatically generated by the Debian mailutils packagers. Do not file bugs for its content to the GNU Mailutils upstream authors.