tAdd muttrc for sending with msmtp - nws-forecast-mailer - fetch and deliver th… | |
git clone git://src.adamsgaard.dk/nws-forecast-mailer | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit bef877bc9a8197c27e1d03160a466a3aec5b1d72 | |
parent 5705ecf6d3712efc65dd4e6b736dca38eba977db | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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: $z… | |
+ mutt -F muttrc -a "$latitude-$longitude-$zcode-48h.png" \ | |
+ -s "NWS 48h forecast: $zcode" -- $i | |
done | |
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 [email protected] | |
+set envelope_from=yes |