rp

simple email tools
git clone https://git.parazyd.org/rp
Log | Files | Refs | README | LICENSE

commit 5e2bd3353bab2d0d3942063edc1c0937e38727cc
parent cceda1b9c560147847f430e7376f1b382de58015
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 14 May 2018 15:49:25 +0200

Use less printf calls in rpsend.

This helps with sending URLs with special characters.

Diffstat:
Mbin/rpsend | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/bin/rpsend b/bin/rpsend @@ -79,15 +79,15 @@ tls_starttls on tls_certcheck off EOF -_subj="$(printf "$email" | rpheaders Subject)" -_dest="$(printf "$email" | rpheaders To)" -_cc="$(printf "$email" | rpheaders Cc)" +_subj="$(echo "$email" | rpheaders Subject)" +_dest="$(echo "$email" | rpheaders To)" +_cc="$(echo "$email" | rpheaders Cc)" cat <<EOF * subject: $_subj * to: $_dest * cc: $_cc - * sending $(rputil -e humansize $(printf "$email\n" | wc -c)) over the network + * sending $(rputil -e humansize $(echo "$email" | wc -c)) over the network EOF cat <<EOF | msmtp $dryrun -C "$msmtpcfg" -t -X "$profile/tmp/msmtp.log" @@ -109,4 +109,6 @@ case "$_e" in esac # if successful, place into Sent -printf "$email\n" | /usr/libexec/dovecot/deliver -m Sent +cat <<EOF | /usr/libexec/dovecot/deliver -m Sent +$email +EOF