<<< Date Index >>>     <<< Thread Index >>>

[PATCH] q-p-decode while piping to urlview



# HG changeset patch
# User Christoph Berg <cb@xxxxxxxx>
# Date 1179405607 -7200
# Node ID b8cc07db598c4302b14f27f972c1efb7e977d651
# Parent  33af2883d52b99ece0a935818a91293b502603aa
Temporarily set pipe_decode in the \cb urlview macro. (Debian #423640.)

diff -r 33af2883d52b -r b8cc07db598c Muttrc.head
--- a/Muttrc.head       Tue May 15 21:05:53 2007 +0200
+++ b/Muttrc.head       Thu May 17 14:40:07 2007 +0200
@@ -11,8 +11,11 @@ macro index \eb "<search>~b " "search in
 macro index \eb "<search>~b " "search in message bodies"
 
 # simulate the old url menu
-macro index,pager \cb "<pipe-message> urlview<Enter>" "call urlview to extract 
URLs out of a message"
-macro attach,compose \cb "<pipe-entry> urlview<Enter>" "call urlview to 
extract URLs out of a message"
+macro index,pager,attach,compose \cb "\
+<enter-command> set my_pipe_decode=\$pipe_decode pipe_decode<Enter>\
+<pipe-message> urlview<Enter>\
+<enter-command> set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<Enter>" 
\
+"call urlview to extract URLs out of a message"
 
 # Show documentation when pressing F1
 macro generic,pager <F1> "<shell-escape> less @docdir@/manual.txt<Enter>" 
"show Mutt documentation"