X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.muttrc;h=e11931545c155ed5b41849c46c6e63239eb44c41;hb=60a70cfee8af5e2da611e7ad91fd86db9bb8ea81;hp=43b93f9475009f58c0a8d2b27cef8fd0e22fd894;hpb=2b3edef85bb64c9e135b2d90743255163fff8134;p=dotfiles.git diff --git a/.muttrc b/.muttrc index 43b93f9..e119315 100644 --- a/.muttrc +++ b/.muttrc @@ -283,36 +283,59 @@ bind index,pager S decode-save # Macros # -# Go to the first folder with unread messages -macro index C c\n -macro pager C qc\n - -# Move current message to inbox -macro index,pager S s!\n - -macro index,pager h ":auto_view text/html\n" -macro index,pager H ":unauto_view text/html\n" - -# Pipe spam -#macro index,pager z |"sa-learn --no-sync --ham\n" -#macro index,pager Z |"sa-learn --no-sync --spam\n" -macro index,pager s "q"|"spamassassin -d | ~/mail/bin/spamcop.py\nj" -macro index,pager z "q:set editor='vim -s ~/mail/misc/spamcop.vim'\nr:set editor=vim.sh\nqn" - -# Go to main mailbox -macro index H c!\n -macro pager H qc!\n +macro index,pager C \ + \ + "Go to the first folder with unread messages" + +macro index,pager S \ + ! \ + "Move current message to inbox" + +macro index,pager h \ + ":auto_view text/html" \ + "View HTML attachments" +macro index,pager H \ + ":unauto_view text/html" \ + "Don't show HTML attachments" + +macro index,pager s \ + "spamassassin -d | ~/mail/bin/spamcop.py" \ + "Send spam to SpamCop" +macro index,pager z \ + ":set editor='vim -s ~/mail/misc/spamcop.vim':set editor=vim.shn" \ + "Process message from SpamCop" + +macro index,pager H \ + ! \ + "Go to inbox" +macro index,pager M \ + =sent-mail \ + "Go to sent-mail" # Go to python mailbox -macro index Y c=lists/python\n -macro pager Y qc=lists/python\n +macro index,pager Y \ + =lists/python \ + "Go to python" + +# Go to STCnet "Atlas"/STM mailboxes +macro index,pager A \ + =stcnet \ + "Go to stcnet inbox" +macro index,pager a \ + =sent-stcnet \ + "Go to sent-stcnet" # Recode base64 to 8bit, html to plain text, mustdie-1251 to koi8-r, etc. -macro index,pager M "|mimedecode.py | less\n" -macro index,pager E ":set editor=mimedecode.sh\ne:set editor=vim.sh\n" - -# Convert X-Face header to an image and display it -macro index,pager f |"~/mail/bin/view-x-face\n" +macro index,pager \ + m "mimedecode.py | less" \ + "View MIME-decoded message" +macro index,pager E \ + ":set editor=mimedecode.sh:set editor=vim.sh" \ + "MIME-decode and save" + +macro index,pager f \ + ~/mail/bin/view-x-face \ + "Convert X-Face header to an image and display it" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #