commit 0db6f7dd783a2dc0b1529837ac848231d05c42cb parent 47ce273fc5b5e4807b24875174ac90ef72ba0d2e Author: parazyd <parazyd@dyne.org> Date: Sun, 22 Apr 2018 20:15:51 +0200 rpsend: Use cat instead of printf for feeding msmtp. Diffstat:
M | bin/rpsend | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/rpsend b/bin/rpsend @@ -90,8 +90,9 @@ cat <<EOF * sending $(rputil -e humansize $(printf "$email\n" | wc -c)) over the network EOF -printf "$email\n" | \ - msmtp $dryrun -C "$msmtpcfg" -t -X "$profile/tmp/msmtp.log" +cat <<EOF | msmtp $dryrun -C "$msmtpcfg" -t -X "$profile/tmp/msmtp.log" +$email +EOF _e=$?