nws-forecast-mailer

Fetch and deliver the NWS 48-hour forecast by email
git clone git://src.adamsgaard.dk/nws-forecast-mailer
Log | Files | Refs | README

commit bef877bc9a8197c27e1d03160a466a3aec5b1d72
parent 5705ecf6d3712efc65dd4e6b736dca38eba977db
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Wed,  3 Jan 2018 18:54:26 -0800

Add muttrc for sending with msmtp

Diffstat:
Mfetch_and_mail.sh | 3++-
Amuttrc | 5+++++
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/fetch_and_mail.sh b/fetch_and_mail.sh @@ -15,5 +15,6 @@ fetch $latitude $longitude $zcode for i in "${recipient[@]}" do echo "Weather forecast for $latitude $longitude $zcode" | \ - mutt -a "$latitude-$longitude-$zcode-48h.png" -s "NWS 48h forecast: $zcode" -- $i + mutt -F muttrc -a "$latitude-$longitude-$zcode-48h.png" \ + -s "NWS 48h forecast: $zcode" -- $i done diff --git a/muttrc b/muttrc @@ -0,0 +1,5 @@ +set sendmail="/usr/bin/msmtp -a riseup" +set use_from=yes +set realname="Anders' Weather Service" +set from=andersd@riseup.net +set envelope_from=yes