Linux command
neomutt 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start NeoMutt
neomutt
Open a specific mailbox
neomutt -f [/path/to/mailbox]
Send an email
echo "[body]" | neomutt -s "[subject]" [recipient@example.com]
Send with an attachment
neomutt -s "[subject]" -a [file.pdf] -- [recipient@example.com]
Use an alternate config file
neomutt -F [~/.neomuttrc]
Open the first mailbox
neomutt -Z
Open mailbox in read-only mode
neomutt -R -f [/path/to/mailbox]
说明
neomutt is a small but powerful terminal email client supporting color terminals, MIME, OpenPGP/GnuPG, S/MIME, and threaded message sorting. It is a community-driven fork of Mutt that integrates long-standing patches and adds new features. Supported protocols include IMAP, POP3, SMTP, NNTP, and local mailbox formats (mbox, Maildir, MH, MMDF). NeoMutt is highly configurable via `~/.neomuttrc` and uses Vim-like key bindings by default.
参数
- -a _FILE_
- Attach one or more files to a message. Must be the last option before -- and addresses.
- -b _ADDRESS_
- Specify a blind carbon copy (BCC) recipient.
- -c _ADDRESS_
- Specify a carbon copy (CC) recipient.
- -d _LEVEL_
- Log debugging output at the specified level (1-5); level 2 is recommended.
- -e _COMMAND_
- Execute a configuration command after reading config files.
- -f _MAILBOX_
- Open the specified mailbox.
- -F _FILE_
- Use the specified file as the configuration file instead of the default.
- -H _DRAFT_
- Use a draft file containing headers and body to compose a message.
- -i _FILE_
- Specify a file to be embedded in the message body.
- -l _FILE_
- Write debugging output to this file instead of the default.
- -m _TYPE_
- Set the default mailbox format (mbox, MMDF, MH, or Maildir).
- -n
- Do not read the system-wide configuration file.
- -p
- Resume a prior postponed message.
- -Q _VARIABLE_
- Query a configuration variable and print its value, then exit.
- -R
- Open the mailbox in read-only mode.
- -s _SUBJECT_
- Specify the subject of the message.
- -v
- Print version and compile-time definitions, then exit.
- -y
- Start with a listing of all defined mailboxes.
- -Z
- Open the first mailbox with new messages, or exit with code 1 if none.
- -z
- Open the specified or first mailbox only if it contains messages, otherwise exit.
FAQ
What is the neomutt command used for?
neomutt is a small but powerful terminal email client supporting color terminals, MIME, OpenPGP/GnuPG, S/MIME, and threaded message sorting. It is a community-driven fork of Mutt that integrates long-standing patches and adds new features. Supported protocols include IMAP, POP3, SMTP, NNTP, and local mailbox formats (mbox, Maildir, MH, MMDF). NeoMutt is highly configurable via `~/.neomuttrc` and uses Vim-like key bindings by default.
How do I run a basic neomutt example?
Run `neomutt` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a _FILE_ do in neomutt?
Attach one or more files to a message. Must be the last option before -- and addresses.