Skip to content

Instantly share code, notes, and snippets.

@vkuznet
Forked from jrziviani/mutt.txt
Created December 23, 2020 15:33
Show Gist options
  • Save vkuznet/03bed5d311b6a4df7bc394ecd581ff5a to your computer and use it in GitHub Desktop.
Save vkuznet/03bed5d311b6a4df7bc394ecd581ff5a 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