dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 1d8baaedc005d275cf2513ad6225d2a24b188835
parent 9c95e46e39ff24dc83604f027dad306c1814b6f9
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  8 May 2020 12:01:06 +0200

Add simplistic auto unsubscribe

Diffstat:
M.config/mutt/muttrc | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc @@ -195,6 +195,11 @@ macro index,pager \ o "<enter-command>unset wait_key<enter>\ <pipe-message>sed -n \'s/\^URL: //p\' | plumb<enter>\ <enter-command>set wait_key<enter>N"' +# unsubscribe +macro index,pager \ u "<enter-command>unset wait_key<enter>\ +<pipe-message>grep http | grep unsub | sed 's/.*http/http/;s/)#//' | plumb<enter>\ +<enter-command>set wait_key<enter>N"' + # notmuch-mutt integration, from `man notmuch-mutt` macro index L "<enter-command>set my_old_pipe_decode=\$pipe_decode \ my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\