Compare commits

..

No commits in common. "msmtp" and "main" have entirely different histories.
msmtp ... main

View file

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