blob: 8ca773bb997d2770b719d458f3222f98626f5a0b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#macro index,pager S "<save-message>=[Gmail]/Spam<enter>" "mark message as spam"
macro index ,r "<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all new messages read"
#macro index,pager H "<save-message>=INBOX<enter>" "mark message as ham"
macro index .i "l((~N|~O|~F)!~D)|(~d<1w!~Q)\n" "list new, flagged or one week messages"
macro index .n "l~N\n" "list only new messages"
macro index .a "l~A\n" "list all messages"
macro index .t "l~d<1d\n" "list today messages"
macro index O "<shell-escape>offlineimap<enter>" "sync all mailboxes"
macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "sync INBOX"
# Notmuch
macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
# Threads macros
macro index,pager za "<Esc>v"
macro index,pager zr "<Esc>V"
macro index,pager zm "<Esc>V"
macro index,pager A "<pipe-message>abook --add-email<return>" " add the sender address to abook"
# vim: ft=muttrc
|