For those of you who remember yesterday I set my TiddlyWeb up so it would mail me a tiddler on demand from a shell script (just to demonstrate it could be done). If you haven't read it or have the memory of a goldfish please read
Mail me a tiddler to get up to speed.
So phase 2 was always going to be going the other way and taking an e-mail and turning it into a tiddler. Again I've gone away and done some work and have made this possible! Hurray!
If you take a look at this
lovely link you will find yourself presented with a tiddler. But this is no normal tiddler - this my friends - is the first tiddler created by e-mail (as far as I know). Lo and behold its beauty!
But you my friends if you don't believe me can try it yourself as I've setup a test instance allowing you to e-mail your very own tiddler to this bag - simply send an email to tiddlyweb at jonrobson dot me dot uk and TiddlyWeb will soon get back to you with a url to view it. Pretty neat hey?
To get this running yourself you will need 4 things - tiddlyweb, a pop email account, the
sendmail plugin and the newly created
getmail plugin.
Configure the getmail script with your pop email settings and you will then be able to run
twanager getmail emails true
which will check the email inbox you gave it, and put any new mails into the bag called emails. The final argument will send a notification (you will need to adjust the text in getmail.py to change the message to suit your needs).
Those are the two pieces as I see them in the mailing puzzle. With both of these you should be able to make TiddlyWeb plugins that do lots of amazing things such as publishing tiddlers from email/sending notifications. Now I've got to find a way to do the same with a text message :)
Thanks for reading this far. Did I bore you or interest you? Let me get better at doing the latter and focus more on working on the good stuff...