nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] mojibake in UTF-8 encoded quoted-printable messages

2013-10-24 13:01:02
Thus spake Ken Hornstein:
Challenge accepted:

mhshow-show-text/html: %p/usr/bin/lynx `echo %a | sed -n 
's/.*charset="\([^"]\+\)".*/-assume_charset=\1/p'` -force_html -dump '%f' | 
less

Well played :-)

Although ... will that end up with a zero-length parameter to lynx?  Or
will that be eaten by the shell?

The subshell prints nothing when there's no charset, so what the shell
sees is two consecutive spaces between "lynx" and "-force_html". (I
tested this.)

I think you would admit that a %-escape
unambiguously specifying the character set would be preferrable :-)

Definitely. I'm happy that I can do this, not happy that I must. Looking
forward to a new %-escape in 1.6...
 
-- 
J.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>