Simple NodeJS application that will listen for new mails on account defined in imap config(in config.js file). On receiving new mail it will add new task to Todoist account(defined in config.js file).
Mail form:
to: [email protected]
cc: [email protected]
subject: Todoist project name
mailbody first line: task text
mail body second line: date string in format (optional)
mail body third line: priority of task(1-4) (optional)
For example:
If we have Todoist account with project named "Work", collaborator at that project with mail "[email protected]" and mail that this nodejs application monitoring is "[email protected]". Then we can add new task send mail with next content:
to: [email protected]
cc: [email protected]
subject: Work
mail body first line: My new task
mail body second line (optional): today
mail body third line (optional): 3
Requirments:
After all requirments resolved follow next steps to run todoist_by_mail:
-
First clone todoist_by_mail repository:
git clone https://github.com/Bootta11/todoist_by_mail.git
-
Move to cloned directory
-
Install all NodeJS packages:
npm install
-
Edit config.js(change to your own parameters)
-
Run todoist_by_mail:
node app.js