use msmtp for standardized syntax
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQR2zYvweXfSPsSU6pP1Tg1AaVJx1AUCZVXK1QAKCRD1Tg1AaVJx 1I6PAP44hKXmxfwvsGYT3ScP8twlVgYlIYZKN3gZQort9BUoJgD/cvSTIOzHN0bs AQoBTAxcFRJFqJecCQkvU/4zSMjL/wk= =mXDC -----END PGP SIGNATURE-----
1 files changed,
6 insertions(+),
5 deletions(-)
jump to
M
mail2mms.sh
→
mail2mms.sh
@@ -65,12 +65,13 @@ newnew=$(\ls -1 ${inbox}/new | wc -l)
# 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