Χάρης Καραχριστιανίδης wrote in
 <20230225153045.x5sns%[email protected]>:
 |Steffen Nurpmeso <[email protected]> wrote:
 ...
 |>|lynx is called form /etc/mailcap which is not overriden from ~/.mailcap..
 |> 
 |> Mailcap files are searched in $MAILCAPS order:
 |> 
 |>   ? varshow MAILCAPS
 |>   set MAILCAPS=~/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/ma\
 |>   ilcap
 |> 
 |> So your personal file should be matched first.  (You could
 |> override this if you need to.)
 |> 
 |>   ? mailcap
 ...
 |In /etc/mailcap I commented out
 |text/html; lynx -dump -assume_charset=%{charset} %s; copiousoutput; \
 |description=HTML Text; nametemplate=%s.html

 |and in ~/.maicap I added

 |text/html; w3m -H -T text/html %s; needsterminal; description=HTML \
 |Text; nametemplate=%s.html
 |text/html; w3m -H -dump -T text/html %s; copiousoutput; description=HTML \
 |Text; nametemplate=%s.html

 |and everything, icluding Greek works fine!

Nice.. but it sounds a bit odd to me because your ~/.mailcap comes
first so whatever is in /etc/mailcap should be inspected as
a second class citizen, and to be absolutely sure (just in case my
code inspection is borked) i have even tried it.


But hey!
In the meantime i had a conscious moment and fixed this terrible
bug in the mailcap %{NAME} format expansion!  With credits to you!

On master and the stable branches; the according test is on the
development branch only.  v14.10 will come with a much improved
test coverage, but that .. we yet had not.

No easy way out for you, except maybe doing someting like

  text/html;\
    cs=%{charset}\;\
    cs=${cs%*'charset}'}\;\
    lynx -dump -assume_charset=$cs %s; copiousoutput

etc (not tried but in shell).

AARGH!!

Thanks and ciao!  Greetings to Greece!!

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to