commit 7425f5ff1d01a780fdd961a571051d4c1239fb89
parent b902acccd1e4deaa8bcd6371873ad145ff1dfcd7
Author: parazyd <parazyd@dyne.org>
Date: Mon, 5 Mar 2018 01:15:49 +0100
Fix bug in rpqueue.
Also style fixes in rpsend.
Diffstat:
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/bin/rpqueue b/bin/rpqueue
@@ -8,4 +8,4 @@ mkdir -p "$profile/tmp/outbox"
email="$(cat)"
fname="$(echo "$email" | rpheaders Message-ID | tr -d '<>')"
-echo "%s" "$email" > "$profile/tmp/outbox/$fname"
+echo "$email" > "$profile/tmp/outbox/$fname"
diff --git a/bin/rpsend b/bin/rpsend
@@ -53,7 +53,6 @@ fi
known="$(cat $profile/smtp-fingerprint)"
served="$(rputil -e getfpr "$rnet")"
-echo
echo " * known fingerprint: $known"
echo " * served fingerprint: $served"
echo
@@ -83,11 +82,9 @@ EOF
_subj="$(printf "$email" | rpheaders Subject)"
_dest="$(printf "$email" | rpheaders To)"
-echo " * sending using msmtp"
echo
echo " * subject: $_subj"
echo " * to: $_dest"
-echo
echo " * sending $(rputil -e humansize $(printf "$email\n" | wc -c)) over the network"