2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-17 09:25:32 +00:00
cheat.sheets/sheets/mutt
2020-03-15 14:30:55 +00:00

79 lines
2.2 KiB
Plaintext

# mutt
# Text-based mailreader supporting MIME, GPG, PGP and threading
# Send E-Mail with subject, cc, and attachment.
mutt -s "Site Backup" -a backup.tar -c user@example.com user2@example.com
# Send E-Mail with blind carbon copy (bcc).
mutt -s "hello" -b user2@example.com user@example.com
# 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)
# Keyboard shortcuts.
#
# shift+d (D) : Delete messages using pattern
# shift+t (T) : Select messages using pattern
# shift+u (U) : Un-delete messages using pattern
# ctrl+t : de-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, de-select them