From 99c475febdff0e8411fcfc83c82c5fa86dfe51f5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 8 May 2016 20:12:05 +0300 Subject: [PATCH] .muttrc: avoid trick doesn't work in empty folders. --- .muttrc | 56 ++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 16 deletions(-) diff --git a/.muttrc b/.muttrc index e119315..fad17a9 100644 --- a/.muttrc +++ b/.muttrc @@ -283,8 +283,11 @@ bind index,pager S decode-save # Macros # -macro index,pager C \ - \ +macro index C \ + \ + "Go to the first folder with unread messages" +macro pager C \ + \ "Go to the first folder with unread messages" macro index,pager S \ @@ -298,31 +301,52 @@ macro index,pager H \ ":unauto_view text/html" \ "Don't show HTML attachments" -macro index,pager s \ - "spamassassin -d | ~/mail/bin/spamcop.py" \ +macro index s \ + "spamassassin -d | ~/mail/bin/spamcop.py" \ + "Send spam to SpamCop" +macro 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" \ +macro index z \ + ":set editor='vim -s ~/mail/misc/spamcop.vim':set editor=vim.shn" \ + "Process message from SpamCop" +macro pager z \ + ":set editor='vim -s ~/mail/misc/spamcop.vim':set editor=vim.shn" \ "Process message from SpamCop" -macro index,pager H \ - ! \ +macro index H \ + ! \ + "Go to inbox" +macro pager H \ + ! \ "Go to inbox" -macro index,pager M \ - =sent-mail \ +macro index M \ + =sent-mail \ + "Go to sent-mail" +macro pager M \ + =sent-mail \ "Go to sent-mail" # Go to python mailbox -macro index,pager Y \ - =lists/python \ +macro index Y \ + =lists/python \ + "Go to python" +macro pager Y \ + =lists/python \ "Go to python" # Go to STCnet "Atlas"/STM mailboxes -macro index,pager A \ - =stcnet \ +macro index A \ + =stcnet \ "Go to stcnet inbox" -macro index,pager a \ - =sent-stcnet \ +macro pager A \ + =stcnet \ + "Go to stcnet inbox" +macro index a \ + =sent-stcnet \ + "Go to sent-stcnet" +macro pager a \ + =sent-stcnet \ "Go to sent-stcnet" # Recode base64 to 8bit, html to plain text, mustdie-1251 to koi8-r, etc. -- 2.39.2