This version of MyTinyTodo is able to create Todo tasks by sending a mail. That's fairly easy, you just need to configure your mail server to execute mytinitodo_api.php
of your installation. Since procmail is quite common to process mails, I'll show you how to setup procmail to forward mails of a specific user. If you're using something different you need to find a way yourself, but I'm sure there are lots of tutorials out there to help you. If you have some interesting workarounds feel free to share it with others in the comments.
You need to create a new user. All mails to that user will afterwards end up as a task in your Todo list. If you're on a *nix use this command as a template to create a user todo
:
sudo adduser --home /home/youruser --shell /bin/false --disabled-password todo
Open /home/youruser/.procmailrc
and add something like this:
VERBOSE=on PMDIR=$HOME/.procmail LOGFILE=$PMDIR/procmail.log :0 | /usr/bin/php5 /path/to/mytinytodo/mytinitodo_api.php importmail
This will forward all mails that arrive to the user youruser
to MyTinyTodo. In addition, you should create a directory /home/youruser/.procmail
. There you'll find some logs of the procmail processing.
Omit this step if you're fine with sending mails to youruser@yourserver.tld
. But you might have created an user like xyz123
but want to send your mails to todo@yourserver.tld
, so just open /etc/aliases
and append a line like the following:
todo: youruser
Afterwards run newaliases
to deploy this new configuration. Congratulations, now all mails sent to todo@yourserver.tld
will end up as a new task in your MyTinyTodo instance!
Of course, that's quite risky. Somebody might guess the mail address todo@yourserver.tld
, so I recommend to create an alias conatining a unique pin, e.g. todo7193@yourserver.tld
. It's still convenient if you save this mail address to your address book, but the chance that other people create stupid tasks for you is fairly small.