summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-02-06 17:32:13 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-02-06 17:32:13 +0100
commit1aa4977f711fe1590799c9e13c16259b43605c42 (patch)
tree59e8893e67e54abab7101c40ce7446ec2e720c7e
parent9d280aa8a30a22e57db505450e9586346ae9943c (diff)
downloadmblaze-1aa4977f711fe1590799c9e13c16259b43605c42.tar.gz
mblaze-1aa4977f711fe1590799c9e13c16259b43605c42.tar.xz
mblaze-1aa4977f711fe1590799c9e13c16259b43605c42.zip
mcom: decode address for Reply-To: and To: header
mmime will recode again if required.
-rwxr-xr-xmcom4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcom b/mcom
index f86edea..c42a19f 100755
--- a/mcom
+++ b/mcom
@@ -327,8 +327,8 @@ fi
 		if [ "$ng" ]; then
 			printf 'Newsgroups: %s\n' "$ng"
 		else
-			to=$(mhdr -h reply-to "$1")
-			[ -z "$to" ] && to=$(mhdr -h from "$1")
+			to=$(mhdr -d -h reply-to "$1")
+			[ -z "$to" ] && to=$(mhdr -d -h from "$1")
 			printf 'To: %s\n' "$to"
 			printf 'Cc: %s\n' \
 			       "$(mhdr -d -A -h to:cc: "$1" |