use msmtp for standardized syntax
This commit is contained in:
parent
7c5b6db116
commit
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 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
|
||||||
|
|
Loading…
Reference in a new issue