Skip to content

Instantly share code, notes, and snippets.

@jrziviani
Last active September 5, 2022 16:30
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jrziviani/9599d2a54ccc40f37b1aeb6568fe59f9 to your computer and use it in GitHub Desktop.
Save jrziviani/9599d2a54ccc40f37b1aeb6568fe59f9 to your computer and use it in GitHub Desktop.
mutt cheat sheet
Mutt
http://www.mutt.org/doc/manual/manual.html
Select (tag) messages: shift+t (T)
= (string)
~ (expression)
~b expr (message with expr in body)
[b]body
[B]whole message
[f]rom
[c]c'ed
[C]c'ed or to
[h]eader
~m from-to (range)
~d from-to (date range)
~N (new messages)
~U (unread messages)
~R (read messages)
~A (all messages)
~D (deleted messages)
~p (message to you)
~P (message from you)
~= (duplicated messages)
~$ (unref messages)
* Logical operators:
AND = ~P ~N (new messages from you)
OR = ~P | ~N (new messages of messages from you)
() = (~= ~$) | ~N
* DATES
DD/MM/YY
~d 20/1/95-31/10/95 (from 20/01/95 to 31/10/95)
~d -31/10/95 (before 31/10/95)
~d 20/1/95- (after 20/01/95)
~d 20/1/95 (only 20/01/95)
~d 20/1/95*2w (two weeks around 20/01/95)
[w]eek
[d]day
[m]onth
[y]ear
can use *(around), +(after) or -(before)
~d <1m (messages newer than 1 month)
~d >1y (messages older than 1 year)
~d =1d (exact one day)
Keys:
shift+d (D) : delete messages using pattern
shift+t (T) : select messages using pattern
shift+u (U) : undelete messages using pattern
ctrl+t : un-selected messages using pattern
d : delete message
N : mark as new
C : copy message to another folder(mailbox)
o, O : change sort, reverse sort
ctrl+ D, U : Deleted, Undelete a thread
ctrl+R : mark current thread as read
esc+t : select thread
esc+ v, V : collapse thread, collapse all threads
w,W : add, remove flags
T ~U ;WN ctrl+t .
mark unread msgs, remove its new flag, unselect them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment