#macro index,pager S "=[Gmail]/Spam" "mark message as spam" macro index ,r "~NN." "mark all new messages read" #macro index,pager H "=INBOX" "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 "offlineimap" "sync all mailboxes" macro index o "offlineimap -qf INBOX" "sync INBOX" # Notmuch macro index L "unset wait_keyread -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"" "show only messages matching a notmuch pattern" # Threads macros macro index,pager za "v" macro index,pager zr "V" macro index,pager zm "V" macro index,pager A "abook --add-email" " add the sender address to abook" # vim: ft=muttrc