mcom: allow spaces in sequence for mbnc and mrep

Closes: #231 [via git-merge-pr]
pull/235/head
codesoap 2 years ago committed by Leah Neukirchen
parent 9d66764434
commit 8d543fdb21

@ -321,7 +321,10 @@ fi
) fi ) fi
;; ;;
*mbnc*) *mbnc*)
old_ifs="$IFS"
IFS=$NL
set -- $(mseq -- "$@") set -- $(mseq -- "$@")
IFS="$old_ifs"
if [ "$#" -ne 1 ]; then if [ "$#" -ne 1 ]; then
printf 'mbnc: needs exactly one mail to bounce\n' 1>&2 printf 'mbnc: needs exactly one mail to bounce\n' 1>&2
exit 1 exit 1
@ -344,7 +347,10 @@ fi
) )
;; ;;
*mrep*) *mrep*)
old_ifs="$IFS"
IFS=$NL
set -- $(mseq -- "$@") set -- $(mseq -- "$@")
IFS="$old_ifs"
if [ "$#" -ne 1 ]; then if [ "$#" -ne 1 ]; then
printf 'mrep: needs exactly one mail to reply to\n' 1>&2 printf 'mrep: needs exactly one mail to reply to\n' 1>&2
exit 1 exit 1

Loading…
Cancel
Save