Quote command expansion to prevent word splitting

This is necessary to support maildir paths that contain spaces.

Closes: #242 [via git-merge-pr]
pull/243/head
Johannes Thyssen Tishman 10 months ago committed by Leah Neukirchen
parent ce435c8f6f
commit 23a9e7022e

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

Loading…
Cancel
Save