Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Alpine "decodes" text/html before executing mailcap entry

22 views
Skip to first unread message

Lucas Levrel

unread,
Nov 29, 2011, 10:39:45 AM11/29/11
to
Hi,

My .mailcap states:
text/html; cp -f %s /tmp/toto.html\; seamonkey-html-viewer /tmp/toto.html

When I try to view the HTML part of a mail in latin-9 encoding, text is
converted to utf-8 before being sent to my mailcap command. The result is
a bad toto.html whose header says "latin-9" but whose body is utf-8.

I checked the original mail itself is correct: piping the "raw text" of
the HTML part to "cat>toto.html" yields a latin-9-encoded file.

Is there a way to make Alpine send raw text to the mailcap command?

Thanks in advance.
--
LL

cha...@washington.edu

unread,
Nov 29, 2011, 8:54:01 PM11/29/11
to
On Nov 29, 9:39 am, Lucas Levrel <lucas.lev...@u-pec.fr> wrote:
> Hi,
>
> My .mailcap states:
> text/html; cp -f %s /tmp/toto.html\; seamonkey-html-viewer /tmp/toto.html
>
> When I try to view the HTML part of a mail in latin-9 encoding, text is
> converted to utf-8 before being sent to my mailcap command. The result is
> a bad toto.html whose header says "latin-9" but whose body is utf-8.

I would suggest to use iconv so that the file be converted from UTF-8
is latin-9.

--
Eduardo
http://patches.freeiz.com/alpine/

Lucas Levrel

unread,
Nov 30, 2011, 9:43:54 AM11/30/11
to
I can only do that once I've looked at the header, because I don't know
beforehand if it's latin-9 ou latin-1 or... So I'd have to call iconv with
some $(grep ...) in the command-line, but it's a bit too complicated for
me.

Well, I can live with that.

Thanks for answering.
--
LL
0 new messages