all repos — mail2mms @ 50588847a681738661407588760260396b7cd2dc

YOU'VE GOT MAIL! notify via MMS of new mail in your inbox

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-----
commit

50588847a681738661407588760260396b7cd2dc

parent

7c5b6db116a57619ec14835be92b8643c7c8e67c

1 files changed, 6 insertions(+), 5 deletions(-)

jump to
M mail2mms.shmail2mms.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