]> gitweb.fluxo.info Git - rhatto/dotfiles/mail.git/commitdiff
Mark messages as read and other keybindings
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 17 Feb 2014 02:03:51 +0000 (23:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 17 Feb 2014 02:03:51 +0000 (23:03 -0300)
muttrc.dot.link

index 99e5482088a210106eb58e3508c7303a02340971..2d2b0aec39882e3767233e734207055fd05971fb 100644 (file)
@@ -428,6 +428,11 @@ macro pager X "<enter-command>unset wait_key\n<pipe-entry>bogofilter -MNs\n<ente
 macro index H "<enter-command>unset wait_key\n<pipe-entry>bogofilter -n\n" "Learn as ham and save"
 macro pager H "<enter-command>unset wait_key\n<pipe-entry>bogofilter -n\n" "Learn as ham and save"
 
+# Disable printing
+bind index p noop
+bind pager p noop
+bind pager P noop
+
 # Schleuder config
 # see http://schleuder2.nadir.org/contrib/schleuder-with-mutt.html
 color body red default "^From: .*"
@@ -450,3 +455,13 @@ source "~/.mutt/sidebar"
 # http://wiki.mutt.org/?MuttFaq/Attachment
 macro attach W <save-entry><kill-line>~/load/
 macro attach E <save-entry><kill-line>~/load/<enter>
+
+# Mark messages as read
+# http://blog.jwcxz.com/?p=810
+# http://rc.vc/files/mutt/keybindings.html
+#macro index <esc>m "T~N<enter>;WNT~O<enter>;WO\CT~T<enter>" "mark all messages read"
+macro index M "T \n;WN^t \n" "Mark all messages read"
+macro pager M "T \n;WN^t \n" "Mark all messages read"
+
+# Collapse
+bind index P collapse-all