lefred / mail2todo

Mail to myTinyTodo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mail 2 Todo

This small Python 3 script, is used to create new todo tasks in myTinyTodo 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

Selection_063

Selection_064

Selection_065

About

Mail to myTinyTodo

License:GNU General Public License v2.0


Languages

Language:Python 100.0%