Mutt Reference
A reference of commands in mutt, one of the greatest terminal based email clients!
Another good place to look is http://www.ucolick.org/~lharden/muttchart.html
Commands
General Commands:
q (x) exit the current menu (abort without saving) ^g cancel current action ? list all keybindings for the current menu
The Message Index (browsing through mailbox):
m compose a new message d (D) delete the current message (matching a pattern) u (U) undelete-message (matching a pattern) C (ALT C) copy the current message to another mailbox (decode first) s (ALT s) save-message (decode first) r (g) (L) reply to sender (all recipients) (reply to mailing list) f (b) forward message (bounce) / (ALT /) search (search-reverse) c change to a different mailbox/folder F (N) mark as important (new) l show messages matching a pattern o (O) change the current sort method (reverse sort) t (ALT t) toggle the tag on a message (entire message thread) T (^t) tag messages matching a pattern (untag) v view-attachments <Return> display-message <Tab> jump to the next new message @ show the author's full e-mail address $ save changes to mailbox ^l clear and redraw the screen ALT k mail a PGP public key to someone
The Pager (reading an email):
<Return> go down one line <Space> (-) display the next page/message (previous) ^ ($) jump to the top (bottom) of the message / (ALT /) (n) search for a regular expression (search backwards) (next match) \ toggle search pattern coloring S (T) skip beyond quoted text (toggle display of quoted text)
Composer (setting the send options for an email):
y (P) (w) send the message (postpone) (write to folder) i check spelling, if available a (A) (D) attach a file (attach message) (detach) d edit description on attachment t (ALT f) edit the To field (From field) c (b) edit the Cc field (Bcc field) s edit the Subject r edit the Reply-To field p select PGP options ALT k attach a PGP public key ^f wipe PGP passphrase from memory f specify an 'Fcc' mailbox i.e. sent folder
^g means CTRL and the g key. ALT f means ALT and the f key together. If you do not have an ALT key then use ESC then key. Do not type the brackets.ESCGet the latest copy from http://files.zeth.net/mutt.txt
Patterns
Multiple patterns can be specified on a line and the matched sets are logically ANDed together. e.g. "~F ~s test" would match important (~F) messages with "test" in the subject (~s test).
~A all messages ~b EXPR messages which contain EXPR in the message body =b STRING messages which contain STRING in the message body. If IMAP is enabled, searches for STRING on the server, rather than downloading each message and searching it locally. ~B EXPR messages which contain EXPR in the whole message ~c EXPR messages carbon-copied to EXPR %c GROUP messages carbon-copied to any member of GROUP ~C EXPR messages either to: or cc: EXPR %C GROUP messages either to: or cc: to any member of GROUP ~d [MIN]-[MAX] messages with “date-sent” in a Date range ~D deleted messages ~e EXPR messages which contains EXPR in the “Sender” field %e GROUP messages which contain a member of GROUP in the “Sender” field ~E expired messages ~F flagged messages ~f EXPR messages originating from EXPR %f GROUP messages originating from any member of GROUP ~g cryptographically signed messages ~G cryptographically encrypted messages ~h EXPR messages which contain EXPR in the message header ~H EXPR messages with a spam attribute matching EXPR ~i EXPR messages which match EXPR in the “Message-ID” field ~k messages which contain PGP key material ~L EXPR messages either originated or received by EXPR %L GROUP message either originated or received by any member of GROUP ~l messages addressed to a known mailing list ~m [MIN]-[MAX] messages in the range MIN to MAX ~n [MIN]-[MAX] messages with a score in the range MIN to MAX ~N new messages ~O old messages ~p messages addressed to you (consults alternates) ~P messages from you (consults alternates) ~Q messages which have been replied to ~r [MIN]-[MAX] messages with “date-received” in a Date range ~R read messages ~s EXPR messages having EXPR in the “Subject” field. ~S superseded messages ~t EXPR messages addressed to EXPR ~T tagged messages ~u messages addressed to a subscribed mailing list ~U unread messages ~v messages part of a collapsed thread. ~V cryptographically verified messages ~x EXPR messages which contain EXPR in the “References” or “In-Reply-To” field ~X [MIN]-[MAX] messages with MIN to MAX attachments ~y EXPR messages which contain EXPR in the “X-Label” field ~z [MIN]-[MAX] messages with a size in the range MIN to MAX ~= duplicated messages (see $duplicate_threads) ~$ unreferenced messages (requires threaded view) ~(PATTERN) messages in threads containing messages matching PATTERN, e.g. all threads containing messages from you: ~(~P)
Dates
Dates are specified in two ways. Absolute dates are in DD/MM/YY format. A - helps specify range. Month and year are optional. Here are a couple of examples of absolute date range patterns: all of 2012 ~d 01/01/12-01/01/13, first week of this month ~d 01-07, first two months of the year ~d 01/01-29/02.
Relative dates have one of the forms >offset (older than), <offset (newer than), =offset (exactly) where the offset is an integer followed by one of the suffixes "y" for years, "m" for months, "w" for weeks, "d" for days.