X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.muttrc;h=e11931545c155ed5b41849c46c6e63239eb44c41;hb=40f45271a1b473df828cfa471156c7e58601536c;hp=c12f724fc7c0474ae733fc944ea62147e49fbbd0;hpb=5bbe3255550bbe60f6108644243d97590438de84;p=dotfiles.git diff --git a/.muttrc b/.muttrc index c12f724..e119315 100644 --- a/.muttrc +++ b/.muttrc @@ -60,8 +60,8 @@ set write_inc=10 # Progress indicator when writing folders. set allow_8bit # Never do Q-P encoding on legal 8-bit chars set abort_unmodified=no # Let me send empty messages -set alias_file==mutt/aliases # Where to store aliases -set attribution=`case "$LC_TIME" in ru_RU*) echo "'÷ %{%a, %d %b %Y × %I:%M:%S%p %Z} %f ÎÁÐÉÓÁÌ:'" ;; *) echo "'On %d, %f wrote:'" ;; esac` +set alias_file==tmp/aliases # Where to store aliases +set attribution="`case "$LC_TIME" in ru_RU*) echo '÷ %{%a, %d %b %Y × %I:%M:%S%p %Z} %f ÎÁÐÉÓÁÌ(Á):' ;; *) echo 'On %d, %f wrote:' ;; esac`" set beep=no # Never beep on errors set collapse_unread=no # Do not collapse thread with unread messages set confirmappend=no # Don't ask me if i want to append to mailboxes @@ -163,6 +163,7 @@ my_hdr X-Operating-System: Debian GNU/Linux # lists [ ... ] subscribe (python-(announce|dev|ideas)|.*-(list|sig))@python\.org \ + core-workflow@python\.org \ .*@moderators\.isc\.org .*@lists\.sourceforge\.net \ (durus|quixote)-users@mems-exchange\.org pysqlite@lists\.initd\.org \ .*@googlegroups\.com mlug@unixcenter\.ru @@ -282,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 +macro index,pager C \ + \ + "Go to the first folder with unread messages" -# Move current message to inbox -macro index,pager S s!\n +macro index,pager S \ + ! \ + "Move current message to inbox" -macro index,pager h ":auto_view text/html\n" -macro index,pager H ":unauto_view text/html\n" +macro index,pager h \ + ":auto_view text/html" \ + "View HTML attachments" +macro index,pager H \ + ":unauto_view text/html" \ + "Don't show HTML attachments" -# 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" +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" -# Go to main mailbox -macro index H c!\n -macro pager H qc!\n +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" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #