rp

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

commit e6f1487618df8125bad23ae65f3ee90a7dc27948
parent 937106b96799f16181a5068db0dc009f36c4c6ab
Author: parazyd <parazyd@dyne.org>
Date:   Fri,  2 Mar 2018 21:11:03 +0100

Use rpheaders in rpsend.

Diffstat:
Mbin/rpsend | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/rpsend b/bin/rpsend @@ -79,8 +79,8 @@ tls_starttls on tls_certcheck off EOF -_subj="$(printf "$email" | grep -i '^subject: ' | cut -d: -f2 | cut -c2-)" -_dest="$(printf "$email" | grep -i '^to: ' | cut -d: -f2 | cut -c2-)" +_subj="$(printf "$email" | rpheaders Subject)" +_dest="$(printf "$email" | rpheaders To)" einfo "sending using msmtp" einfo "subject: $_subj"