2020-03-15 14:30:55 +00:00
|
|
|
# mutt
|
|
|
|
# Text-based mailreader supporting MIME, GPG, PGP and threading
|
|
|
|
|
|
|
|
# Send E-Mail with subject, cc, and attachment.
|
2017-05-08 20:27:00 +00:00
|
|
|
mutt -s "Site Backup" -a backup.tar -c user@example.com user2@example.com
|
|
|
|
|
2020-03-15 14:30:55 +00:00
|
|
|
# Send E-Mail with blind carbon copy (bcc).
|
2017-05-08 20:27:00 +00:00
|
|
|
mutt -s "hello" -b user2@example.com user@example.com
|
|
|
|
|
|
|
|
# Select (tag) messages: shift+t (T)
|
|
|
|
#
|
2020-03-15 14:30:55 +00:00
|
|
|
# = (string)
|
|
|
|
# ~ (expression)
|
2017-05-08 20:27:00 +00:00
|
|
|
#
|
2020-03-15 14:30:55 +00:00
|
|
|
# ~b expr (message with expr in body)
|
|
|
|
# [b]body
|
|
|
|
# [B]whole message
|
|
|
|
# [f]rom
|
|
|
|
# [c]c'ed
|
|
|
|
# [C]c'ed or to
|
|
|
|
# [h]eader
|
2017-05-08 20:27:00 +00:00
|
|
|
#
|
2020-03-15 14:30:55 +00:00
|
|
|
# ~m from-to (range)
|
|
|
|
# ~d from-to (date range)
|
2017-05-08 20:27:00 +00:00
|
|
|
#
|
2020-03-15 14:30:55 +00:00
|
|
|
# ~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)
|
2017-05-08 20:27:00 +00:00
|
|
|
#
|
2020-03-15 14:30:55 +00:00
|
|
|
# Logical operators:
|
2017-05-08 20:27:00 +00:00
|
|
|
#
|
2020-03-15 14:30:55 +00:00
|
|
|
# AND = ~P ~N (new messages from you)
|
|
|
|
# OR = ~P | ~N (new messages of messages from you)
|
|
|
|
# () = (~= ~$) | ~N
|
2017-05-08 20:27:00 +00:00
|
|
|
#
|
2020-03-15 14:30:55 +00:00
|
|
|
# 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)`.
|
2017-05-08 20:27:00 +00:00
|
|
|
#
|
2020-03-15 14:30:55 +00:00
|
|
|
# ~d <1m (messages newer than 1 month)
|
|
|
|
# ~d >1y (messages older than 1 year)
|
|
|
|
# ~d =1d (exact one day)
|
|
|
|
|
|
|
|
|
|
|
|
# Keyboard shortcuts.
|
2017-05-08 20:27:00 +00:00
|
|
|
#
|
2020-03-15 14:30:55 +00:00
|
|
|
# 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
|