HOWTO:
- Fillin your config.ini
- Send the your command email to your imap account
- Run check_email.py by Python3 or later
Email format:
You need to specify your subject of your command email to "COMMAND_EMAIL_SUBJECT". Then you can insert any of your command enclosed by [command] and [/command]. The format of email can either be 'text/plain'(untested) or 'text/html'.
Extra:
With period_script, you can add this script to crontab so that you can fetch your email periodically. It is notice that you have to chmod a+x to this script.
Credits:
PySocks: https://github.com/Anorov/PySocks