This small Python 3 script, is used to create new todo tasks in myTinyTodo from an email.
- myTinyTodo >= 1.6.10
- Python 3.8 >=
- MySQL Connector Python
- MySQL 8.0 with X Protocol
- Imap over SSL
When the script is configured and running, you can send (or forward) to a dedicated email account.
Every 2 minutes, the script will check for email and create a task for each new email.
The email's Subject will be the title of the task and the first line will be parsed to find the list and tags.
List and tags should be on the first line and prefixed with '@'. The first word totally in uppercase will be considered as the list's name.
Example:
@MYSQL @reply @urgent
The line above means that the task is for the "MYSQL" list and the tags will be "reply" and "urgent".
There is a script you can edit to start and stop the process using systemd.
This is how to use it:
sudo cp mail2todo.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start mail2todo
sudo systemctl status mail2todo
By default DEBUG mode is enabled, you can see the output using journald:
sudo journactl -u mail2todo -f