tAdd muttrc for sending with msmtp - nws-forecast-mailer - fetch and deliver the NWS 48-hour forecast by email
(HTM) git clone git://src.adamsgaard.dk/nws-forecast-mailer
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bef877bc9a8197c27e1d03160a466a3aec5b1d72
(DIR) parent 5705ecf6d3712efc65dd4e6b736dca38eba977db
(HTM) Author: Anders Damsgaard <andersd@riseup.net>
Date: Wed, 3 Jan 2018 18:54:26 -0800
Add muttrc for sending with msmtp
Diffstat:
M fetch_and_mail.sh | 3 ++-
A muttrc | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/fetch_and_mail.sh b/fetch_and_mail.sh
t@@ -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
(DIR) diff --git a/muttrc b/muttrc
t@@ -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