Getting it together
I spent the day at home today, not feeling well. Being stuck at home I
had a chance to catch up on some things, including cleaning out my
email Inbox, which unearthed a few messages that I need to reply to but
had forgotten about. So if you’ve sent me a message in the past month
and haven’t heard back, you should soon. I’ve got 19 pending items in
by Inbox at the moment, and I hope to get that down to < 10 before I
go to bed.
Also today I wrote a little program,
href="http://fettig.net/svn/yarn/trunk/examples/yarncopy.py">yarncopy.py,
which uses Yarn to copy messages from one location to another. It’s
just a little script, 118 lines of code, but since it’s based on Yarn
it can work with lots of different formats and protocols. You can do
href="http://catb.org/%7Eesr/fetchmail/">fetchmail-type things:
yarncopy.py pop://abe@my.server mailto:abe@localhost
Or rss2email-type
things:
yarncopy.py http://fettig.net/rss/rss2.xml mailto:somebody@example.com
And you can even do weird things like IMAP-to-blog:
yarncopy.py imap://mail.example.com/Inbox metaweblog:http://example.com/mt.cgi#Weblog
It will prompt you for user names and passwords as necessary. Right
now it copies every message, every time, which limits its usefulness,
but with some more work I think it has the potential to become quite a
powerful tool.