nmh-workers
[Top][All Lists]
Advanced

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

Re: [nmh-workers] To/cc decode or not to/cc decode


From: David Levine
Subject: Re: [nmh-workers] To/cc decode or not to/cc decode
Date: Sat, 13 Jul 2019 16:41:49 -0400

Conrad writes:

> I noticed that the default (at least under Debian) To: and cc:
> lines in mhl.headers are just empty, implicitly not decoding their
> content,

That is the current default in nmh.

> while the From: line does extra work:
>
>   From:formatfield="%(unquote(decode{text}))"

> .. now actually I'm seeing unreadable garbage in my To: lines quite
> frequently, so adding the same format tweak to To: and cc: seems to make
> sense.  Any good reason not to do this, or why this isn't the default
> for To: and cc: as well as From:?

I can't tell from the repo why that's the default.  I agree that it
should be changed.  Any objection to the following change?

diff --git a/etc/mhl.headers b/etc/mhl.headers
index 27a08d71..f017a518 100644
--- a/etc/mhl.headers
+++ b/etc/mhl.headers
@@ -11,2 +11,2 @@ Date:formatfield="%<(nodate{text})%{text}%|%(pretty{text})%>"
-To:
-cc:
+To:formatfield="%(unquote(decode{text}))"
+cc:formatfield="%(unquote(decode{text}))"

David



reply via email to

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