nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] scan or show of UTF-encoded headers?


From: Oliver Kiddle
Subject: Re: [Nmh-workers] scan or show of UTF-encoded headers?
Date: Mon, 14 Feb 2005 11:00:38 +0100

Paul Fox wrote:
>  
> can nmh decode UTF or otherwise-encoded headers?  it's not that

Yes. See the decode function in the mh-format manual page. It has a few
limitations however. It doesn't use iconv or similar to convert headers
to the current encoding. So you need to use a UTF-8 locale and set the
MM_CHARSET environment variable to UTF-8. That means that it then won't
decode a ISO-8859-1 header anymore.

> i _want_ to be able to read all of the UTF-encoded spam i get, but

The thing I find with spam is that they always seem to break the rfc by
including space characters in the encoded section of the header. I don't
know whether this is also common in legitimate mails but nmh doesn't
decode such headers. The relevant code is in sbr/fmt_rfc2047.c if you're
interested in looking.

Oliver




reply via email to

[Prev in Thread] Current Thread [Next in Thread]