From 5c7432aa7b887bdf427f7f5043a6ba3ed0aac7ce Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 18 Jun 2021 01:04:02 +0200 Subject: mcom: use mhdr -d -A even when extracting From: headers We only want to decode the display part of the addresses only. Mails with a From: like From: "Non-ASCII Lastname, Firstname" resulted in To: lines like To: Non-ASCII Lastname, Firstname which would send to two addresses. Use -A to ensure proper decoding and quoting, even if its just a single address in From. --- mcom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mcom') diff --git a/mcom b/mcom index 057a998..4c1027f 100755 --- a/mcom +++ b/mcom @@ -312,7 +312,7 @@ fi IFS=$NL for f in $(mseq -r "$@"); do printf '%s Forwarded message from %s %s\n\n' \ - $SEP "$(mhdr -d -h from "$f")" $SEP + $SEP "$(mhdr -d -A -h from "$f")" $SEP DISPLAY= mshow -n -N "$f"