On Tue, Mar 16, 2010 at 6:12 AM, peng shao <shallp...@gmail.com> wrote:
> On Tue, Mar 16, 2010 at 5:44 AM, Christian Ebert <blacktr...@gmx.net> wrote:
much. But for me there is still some drawback, the
> %{charset} is lost :(
> Is there any possibility if I set autoview as off, and when I read an
> email, I can press a macro to activate autoview with a specific mime
> in my mailcap. For example, when I saw an email which contains lots of
> url and is in English, then I press a key K1 so the autoview of lynx
> pops up, if it is in Chinese then I can use w3m autoview by key K2
>
>
> Thanks a lot
>
> Peng

I just found a maybe-stupid way to do this trick, I use a program
called elinks, along with iconv
in my mailcap I set
text/html; elinks -dump %s|iconv -f %{charset} -t utf-8 %s| elinks
%s;copiousoutput;

I use elinks because it looks to have better rendering effect. Thank
you for reminding me to use pipe--->this works for me but I am not
sure I was correct, I just did some try and found occasionally it
worked for me. Please correct me if I made any mistake. Thanks.

Peng

Reply via email to