https://github.com/lefred/mail2todo
Mail to myTinyTodo
https://github.com/lefred/mail2todo
Last synced: 12 months ago
JSON representation
Mail to myTinyTodo
- Host: GitHub
- URL: https://github.com/lefred/mail2todo
- Owner: lefred
- License: gpl-2.0
- Created: 2022-07-20T07:43:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-21T07:45:06.000Z (almost 4 years ago)
- Last Synced: 2025-05-22T01:09:32.443Z (about 1 year ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mail 2 Todo
This small Python 3 script, is used to create new todo tasks in [myTinyTodo](https://www.mytinytodo.net/)
from an email.
## Requirements
- myTinyTodo >= 1.6.10
- Python 3.8 >=
- MySQL Connector Python
- MySQL 8.0 with X Protocol
- Imap over SSL
## How does it work ?
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".
## Systemd
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
```
## Examples


