Name

mutt [options] — mutt

Synopsis

/usr/bin stdin stdout - file -- opt --help --version

mutt is a text-based mailer that runs in an ordinary terminal (or terminal window), so it can be used both locally (e.g., in an X terminal window) or remotely over an SSH connection. It is very powerful, with many commands and options. To invoke it, type:

$ mutt

When the main screen appears, any messages in your mailbox are listed briefly, one per line. The commands in Table 1-4 are available.

Table 1-4. mutt commands available on the main screen

Keystroke

Meaning

Up arrow

Move to the previous message.

Down arrow

Move to the next message.

PageUp

Scroll up one pageful of messages.

PageDown

Scroll down one pageful of messages.

Home

Move to the first message.

End

Move to the last message.

m

Compose a new mail message. This invokes your default text editor. After editing the message and exiting the editor, type y to send the message or q to postpone it.

r

Reply to current message. Works like m.

f

Forward the current message to a third party. Works like m.

i

View the contents of your mailbox.

C

Copy the current message to another mailbox.

d

Delete the current message.

While writing a message, after you exit your text editor, the commands in Table 1-5 are available.

Table 1-5. mutt commands available while writing a message

Keystroke

Meaning

a

Attach a file (an attachment) to the message.

c

Set the CC list.

b

Set the BCC list.

e

Edit the message again.

r

Edit the Reply-To field.

s

Edit the subject line.

y

Send the message.

C

Copy the message to a file. ...

Get Linux Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.