about summary refs log tree commit diff
path: root/mcom
diff options
context:
space:
mode:
authorcodesoap <codesoap@mailbox.org>2022-11-09 22:55:18 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-11-11 22:26:48 +0100
commit8d543fdb2115341ce7d2e3c2e866f2663fbe08c8 (patch)
tree2bd32c274f042b18ee09aaee8092a074171300e8 /mcom
parent9d66764434f640f8c36bbbf93a30d8f5d44ee6c9 (diff)
downloadmblaze-8d543fdb2115341ce7d2e3c2e866f2663fbe08c8.tar.gz
mblaze-8d543fdb2115341ce7d2e3c2e866f2663fbe08c8.tar.xz
mblaze-8d543fdb2115341ce7d2e3c2e866f2663fbe08c8.zip
mcom: allow spaces in sequence for mbnc and mrep
Closes: #231 [via git-merge-pr]
Diffstat (limited to 'mcom')
-rwxr-xr-xmcom6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcom b/mcom
index d60070e..fb48401 100755
--- a/mcom
+++ b/mcom
@@ -321,7 +321,10 @@ fi
 		) fi
 		;;
 	*mbnc*)
+		old_ifs="$IFS"
+		IFS=$NL
 		set -- $(mseq -- "$@")
+		IFS="$old_ifs"
 		if [ "$#" -ne 1 ]; then
 			printf 'mbnc: needs exactly one mail to bounce\n' 1>&2
 			exit 1
@@ -344,7 +347,10 @@ fi
 		)
 		;;
 	*mrep*)
+		old_ifs="$IFS"
+		IFS=$NL
 		set -- $(mseq -- "$@")
+		IFS="$old_ifs"
 		if [ "$#" -ne 1 ]; then
 			printf 'mrep: needs exactly one mail to reply to\n' 1>&2
 			exit 1