Compare commits

...

1 commit
main ... msmtp

Author SHA1 Message Date
50588847a6
use msmtp for standardized syntax 2023-11-16 00:55:01 -07:00

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