mutt - The Mutt Mail User Agent
| Use Case | Command | Description |
|---|---|---|
| ๐ฅ Read mail | mutt -f /var/mail/user |
Open a specific mailbox |
| โ๏ธ Send mail | mutt -s "Subject" user@example.com |
Compose and send a message |
| ๐ Attach file | mutt -a file.pdf -- user@example.com |
Send with MIME attachment |
| ๐ต๏ธ BCC | mutt -b hidden@example.com to@example.com |
Blind carbon copy recipient |
| ๐๏ธ CC | mutt -c carbon@example.com to@example.com |
Carbon copy recipient |
| โธ๏ธ Resume postponed | mutt -p |
Resume a postponed message |
| ๐ Read-only | mutt -R |
Open mailbox without modification |
| โน๏ธ Version info | mutt -v |
Display version and compile definitions |
| ๐ Debug mode | mutt -d 2 |
Enable debugging (level 2 recommended) |
| โ๏ธ Query config | mutt -Q folder |
Query a configuration variable |
| ๐ All config | mutt -D |
Print all configuration values |
| ๐ Draft from stdin | mutt -H - to@example.com |
Read draft from stdin |
| ๐ Include file | mutt -i body.txt to@example.com |
Insert file into message body |
| ๐ฎ New mail shortlist | mutt -Z |
Open first mailbox with new mail |
| ๐ฌ List all mailboxes | mutt -y |
Start with listing of all mailboxes |
| ๐ง Custom config | mutt -F ~/.mutt/muttrc |
Use alternative config file |
| ๐ซ No system config | mutt -n |
Skip system-wide Muttrc |
| ๐ Default mailbox type | mutt -m Maildir |
Set mailbox type for new folders |
| ๐ญ Empty mailbox exit | mutt -z -f empty_mbox |
Exit code 1 if mailbox empty |
| ๐ Batch send from stdin | echo "Body" | mutt -s "Subject" to@example.com |
Send message with piped input |
mutt [-nRyzZ] [-e command] [-F rcfile] [-m type] [-f mailbox]
mutt [-Enx] [-e command] [-F rcfile] [-H draft] [-i include]
[-b bcc-addr] [-c cc-addr] [-s subject]
[-a file ... --] to-addr ...
mutt [-nx] [-e command] [-F rcfile] [-b bcc-addr] [-c cc-addr]
[-s subject] [-a file ... --] to-addr ... < message
mutt [-n] [-e command] [-F rcfile] -p
mutt [-n] [-e command] [-F rcfile] -A alias
mutt [-n] [-e command] [-F rcfile] -Q variable
mutt -v[v]
mutt -D
Mutt is a small but very powerful text based program for reading and sending electronic mail under unix operating systems, including support for color terminals, MIME, OpenPGP, and a threaded sorting mode.
Note: This manual page gives a brief overview of the mutt executable command line options. A copy of the full manual is located in /usr/share/doc/mutt, in text, HTML, and/or PDF format. Please refer to the manual to learn how to use and configure Mutt.
-A alias ๐ท๏ธ Print an expanded version of the given alias and exit.-a file ... ๐ Attach a file using MIME. Separating file and to-addr arguments with -- is mandatory. For example:
mutt -a image.jpg -- to-addr
mutt -a img.jpg *.png -- to-addr-1 to-addr-2
The -a option must be placed at the end of command line options.-b bcc-addr ๐ต๏ธ Specify a blind carbon copy (BCC) address.-c cc-addr ๐๏ธ Specify a carbon copy (CC) address.-d level ๐ If Mutt was compiled with +DEBUG log debugging output to ~/.muttdebug0. Level can range from -5 to 5 and affects verbosity. A value of zero disables debugging. A value less than zero disables automatic log file rotation; the log level is then its absolute value. A value of 2 (-2) is recommended for most diagnosis.-D ๐ Print the value of all configuration options to stdout.-E โ๏ธ Edit the draft file specified by -H or include file specified by -i during message composition.-e command โ๏ธ Specify a configuration command to be run after processing of initialization files.-f mailbox ๐ฅ Specify a mailbox to load.-F rcfile ๐ง Use rcfile instead of the user configuration file.-h โ Display a short option summary and exit.-H draft ๐ Specify a draft file which contains header and body to use to send a message. If draft is -, then data is read from stdin. The draft file is expected to contain just an RFC822 email โ headers and a body. Although it is not an mbox file, if an mbox From line is present, it will be silently discarded. Draft files are processed the same in interactive and batch mode; they are not passed through untouched. For example, encrypted draft files will be decrypted.-i include ๐ Specify an include file to be inserted into the body of a message. Ignored if -H is set. If include is -, then data is read from stdin.-m type ๐ Specify a default mailbox type for newly created folders. Can be one of the following: mbox, MMDF, MH or Maildir. See also $mbox_type in the manual.-n ๐ซ Do not read the system-wide Muttrc configuration file.-p โธ๏ธ Resume a postponed message. Exit immediately if there are no postponed messages.-Q variable ๐ Query a configuration variable. The query is performed after all configuration files have been parsed, and any commands given on the command line have been executed.-R ๐ Open a mailbox in read-only mode.-s subject ๐ง Specify the subject of the message. Must be enclosed in quotes if it contains spaces.-v โน๏ธ Display the Mutt version number and compile-time definitions.-vv ๐ Display license and copyright information.-x ๐จ Emulate the mailx(1) compose mode.-y ๐ฌ Start Mutt with a listing of all mailboxes specified by the mailboxes configuration command.-z ๐ญ Exit immediately with code 1 if mailbox specified by -f does not contain any messages.-Z ๐ฎ Open the first mailbox specified by the mailboxes configuration command which contains new mail. Exit immediately with code 1 if there is no new mail in any of them.-- โ Treat remaining arguments as to-addr even if they start with a dash. See also -a above. To-addr can be a local or network mail address as well as mailto: URL.EDITOR, VISUAL โ๏ธ Specifies the editor to use when composing messages. If both EDITOR and VISUAL are set, VISUAL takes precedence. If neither EDITOR nor VISUAL are set, the default is vi(1).EGDSOCKET, RANDFILE ๐ Paths used to initialize the random engine for SSL library.EMAIL ๐ง The user's e-mail address.HOME ๐ Full path of the user's home directory.MAIL ๐ฅ Full path of the user's spool mailbox.MAILDIR ๐ Full path of the user's spool mailbox if MAIL is unset. Commonly used when the spool mailbox is a maildir(5) folder.MAILCAPS ๐๏ธ Path to search for mailcap files.MM_NOASK ๐ If this variable is set, mailcap are always used without prompting first.PGPPATH ๐ Directory in which the user's PGP public keyring can be found. When used with the original PGP program, mutt and mutt_pgpring(1) rely on this being set.REPLYTO โฉ๏ธ Default Reply-To address.TMPDIR ๐๏ธ Directory in which temporary files are created. If unset, /tmp is used. See also $tmpdir configuration variable.LC_ALL, LC_CTYPE, LANG ๐ Used to determine charset and locale to use.TEXTDOMAINDIR ๐ Directory containing translation files. If set, this path overwrites the Mutt installation directory. Used for testing translation changes.~/.muttrc~/.mutt/muttrc$XDG_CONFIG_HOME/mutt/muttrc โ User configuration files./etc/Muttrc or /usr/share/mutt/Muttrc โ System-wide configuration file./tmp/muttXXXXXX โ Temporary files created by Mutt.~/.muttdebug0 โ File containing debugging output. Log files are automatically rotated by mutt changing the number at the end. See -d option above.~/.mailcap โ User definition for handling non-text MIME types./etc/mailcap โ System definition for handling non-text MIME types.~/.mime.types โ User's personal mapping between MIME types and file extensions./etc/mime.types โ System mapping between MIME types and file extensions./usr/bin/mutt_dotlock โ The privileged dotlocking program./usr/share/doc/mutt/manual.txt.gz โ The Mutt manual.None. Mutts have fleas, not bugs.
/usr/5lib. It does work with the S-Lang library, however.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Michael Elkins, and others. Use <mutt-dev AT mutt.org> to contact the developers.
Unix ยท July 24, 2020 ยท MUTT(1)
Generated by phpman v4.9.26-1-g511901d Author: Che Dong Under GNU General Public License
2026-08-08 11:44 @216.73.216.150
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format