nmh-workers
[Top] [All Lists]

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

2019-07-13 15:41:59
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

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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