use msmtp for standardized syntax

This commit is contained in:
Iris Lightshard 2023-11-16 00:55:01 -07:00
parent 7c5b6db116
commit 50588847a6
Signed by: Iris Lightshard
GPG key ID: F54E0D40695271D4

View file

@ -65,12 +65,13 @@ while true; do
# If the number of new mails has increased
if [ ${newnew} -gt ${oldnew} ]; then
echo "$(summary)" \
| mail -r ${addr} \
-s "new mail [${newnew}]" \
${phone}
echo "From: ${addr}
To: ${phone}
Subject: new mail [${newnew}]
$(summary)" | msmtp -t --read-envelope-from
fi
oldnew=${newnew}
sleep 10m
sleep 600
done