From 4fffb4e504247eb29ead04655c6664290223186e Mon Sep 17 00:00:00 2001 From: Johannes Thyssen Tishman Date: Fri, 23 Jun 2023 09:56:14 +0200 Subject: [PATCH] Quote command expansion to prevent word splitting This is necessary to support maildir paths that contain spaces. --- mcom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcom b/mcom index 2cc4df5..4e834c6 100755 --- a/mcom +++ b/mcom @@ -448,7 +448,7 @@ while :; do if $sendmail <"$draftmime"; then if [ "$outbox" ]; then mv "$draftmime" "$draft" - mrefile $(mflag -d -S "$draft") "$outbox" + mrefile "$(mflag -d -S "$draft")" "$outbox" else rm "$draft" "$draftmime" fi @@ -466,7 +466,7 @@ while :; do stampdate "$draft" if $sendmail <"$draft"; then if [ "$outbox" ]; then - mrefile $(mflag -d -S "$draft") "$outbox" + mrefile "$(mflag -d -S "$draft")" "$outbox" else rm "$draft" fi