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 the number of new mails has increased
if [ ${newnew} -gt ${oldnew} ]; then if [ ${newnew} -gt ${oldnew} ]; then
echo "$(summary)" \ echo "From: ${addr}
| mail -r ${addr} \ To: ${phone}
-s "new mail [${newnew}]" \ Subject: new mail [${newnew}]
${phone}
$(summary)" | msmtp -t --read-envelope-from
fi fi
oldnew=${newnew} oldnew=${newnew}
sleep 10m sleep 600
done done