mcom: allow spaces in sequence for mbnc and mrep

pull/231/head
codesoap 2 years ago
parent 9d66764434
commit 21a8308eac

@ -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