about summary refs log tree commit diff
path: root/mcom
diff options
context:
space:
mode:
authorJohannes Thyssen Tishman <johannes@thyssentishman.com>2023-06-23 09:56:14 +0200
committerLeah Neukirchen <leah@vuxu.org>2023-06-26 19:18:03 +0200
commit23a9e7022ea375aafc06ee28fd8466fccd0e5ded (patch)
treed3fd8c70b06b4c43491b2f4055cf01327e22cecb /mcom
parentce435c8f6fd4987db36747156ddce811ebf6fd67 (diff)
downloadmblaze-23a9e7022ea375aafc06ee28fd8466fccd0e5ded.tar.gz
mblaze-23a9e7022ea375aafc06ee28fd8466fccd0e5ded.tar.xz
mblaze-23a9e7022ea375aafc06ee28fd8466fccd0e5ded.zip
Quote command expansion to prevent word splitting
This is necessary to support maildir paths that contain spaces.

Closes: #242 [via git-merge-pr]
Diffstat (limited to 'mcom')
-rwxr-xr-xmcom4
1 files 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