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 11 months ago committed by Leah Neukirchen
parent ce435c8f6f
commit 23a9e7022e

@ -448,7 +448,7 @@ while :; do
if $sendmail <"$draftmime"; then if $sendmail <"$draftmime"; then
if [ "$outbox" ]; then if [ "$outbox" ]; then
mv "$draftmime" "$draft" mv "$draftmime" "$draft"
mrefile $(mflag -d -S "$draft") "$outbox" mrefile "$(mflag -d -S "$draft")" "$outbox"
else else
rm "$draft" "$draftmime" rm "$draft" "$draftmime"
fi fi
@ -466,7 +466,7 @@ while :; do
stampdate "$draft" stampdate "$draft"
if $sendmail <"$draft"; then if $sendmail <"$draft"; then
if [ "$outbox" ]; then if [ "$outbox" ]; then
mrefile $(mflag -d -S "$draft") "$outbox" mrefile "$(mflag -d -S "$draft")" "$outbox"
else else
rm "$draft" rm "$draft"
fi fi

Loading…
Cancel
Save