← 返回命令列表

Linux command

mutt 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start Mutt

mutt

Send email from command line

echo "[body]" | mutt -s "[subject]" [recipient@example.com]

Send with attachment

mutt -s "[subject]" -a [file.pdf] -- [recipient@example.com]

Open specific mailbox

mutt -f [/path/to/mailbox]

Send with CC

mutt -s "[subject]" -c [cc@example.com] [to@example.com]

Use alternate config

mutt -F [~/.muttrc.alt]

说明

mutt is a text-based email client. It's highly configurable with Vim-like keybindings. The tool supports IMAP, POP3, and local mail. Features threading, PGP, and MIME.

参数

-s _SUBJECT_
Email subject.
-a _FILE_
Attach file.
-c _ADDRESS_
CC address.
-f _MAILBOX_
Open mailbox.
-F _FILE_
Config file.
--help
Display help information.

FAQ

What is the mutt command used for?

mutt is a text-based email client. It's highly configurable with Vim-like keybindings. The tool supports IMAP, POP3, and local mail. Features threading, PGP, and MIME.

How do I run a basic mutt example?

Run `mutt` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s _SUBJECT_ do in mutt?

Email subject.