diff --git a/mutt/macros.rc b/mutt/macros.rc index 604387e..6ec9f63 100644 --- a/mutt/macros.rc +++ b/mutt/macros.rc @@ -1,20 +1,27 @@ +#index macro index \ "unset wait_key~/bin/mutt-notmuch --prompt search -o ~/Maildir/mutt_results~/Maildir/mutt_results" \ "search mail (using notmuch)" macro index \ "unset wait_key~/bin/mutt-notmuch thread~/.cache/Maildir/set wait_key" \ "search and reconstruct owning thread (using notmuch)" -macro attach A "/home/kellya/projects/public/mutt-filters/vcalendar-filter | /home/kellya/projects/public/khal/misc/mutt2khal" -macro index t "mutt2task" +# macro index t "mutt2task" +macro index t "/home/kellya/projects/arachnitech/mutt2tw/mutt2tw.py"\ +"A" # 'L' performs a notmuch query, showing only the results 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" # 'a' shows all messages again (supersedes default binding) ### Nutmuch stuff macro index a "all\n" "show all messages (undo limit)" -macro index \\\\ "" # looks up a hand made query -macro index A "+archive -unread -inbox\\n" # tag as Archived +macro index \\\\ "" # looks up a hand made query macro index I "-inbox -unread\\n" # removed from inbox macro index S "-inbox -unread +junk\\n" # tag as Junk mail macro index + "+*\\n" # tag as starred macro index - "-*\\n" # tag as unstarred #### end notmuch stuff + +#Attachments +macro attach A "/home/kellya/projects/public/mutt-filters/vcalendar-filter | /home/kellya/projects/public/khal/misc/mutt2khal" + +# Archive +macro index A ":set confirmappend=no delete=yes\n=archive\n:set confirmappend=no delete=yes\n+archive -unread -inbox\\n"