On Tue, Mar 16, 2010 at 7:21 AM, Christian Ebert <blacktr...@gmx.net> wrote: > > > > Mmh, you could create an addional mailcap file and toggle the > $mailcap_path variable. Try the following (untested): > > set my_lynx_cap="/path/to/lynxmailcap" > > macro pager K1 "\ > <enter-command> set my_mailcap_path=\$mailcap_path > mailcap_path=$my_lynx_cap<enter>\ > <exit><display-message>\ > <enter-command> set mailcap_path=\$my_mailcap_path &my_mailcap_path<enter>" \ > "autoview html with lynx" > > c Thanks a lot for such detailed and patient instructions. I just tested again the pipe method I sent to the maillist and I apologized I was totally out of track. Actually the following should be the correct
text/html; cat %s | iconv -f %{charset} -t utf-8 | elinks ; copiousoutput; But this has a drawback---> If I press v to view the attachments and choose to view the text/html attachment then there will be a mistake--> I guess here the pipe is not allowed. But it is not a big problem because I guess very few people need to view html message in this way. Also I didn't use lynx because for I don't why but among all text-based web-brower I tested, elinks is the only one can recognize pipe input as a "url" page and gives out the correct page. So I guess I need your suggestion to toggle different application to view html in attachment. I will test it later. Thanks a lot for the suggestion:) Peng