Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
50588847a6 |
1 changed files with 6 additions and 5 deletions
11
mail2mms.sh
11
mail2mms.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue