Sunday, February 25, 2007

Archiving mail on IMAP server

Version 1.4 of MailArchiveByDate now supports archiving to IMAP folders.

It works exactly as expected for me, but some users have reported problems with the script not creating new mailboxes. If the mailbox exists, the messages are moved. I have not been able to reproduce the problem myself using dovecot on Fedora Core 4 or Scalix (which is supposed to look like an Exchange server).

Wednesday, February 21, 2007

User interface research

This research by Jeff Han at New York University is very cool. I can't wait to get my hands on one of those drafting tables!

Saturday, February 10, 2007

How NOT to Backup a Blogger Blog

Over at the Google Operating System blog, they offer a way to "backup" your blog. It is mostly a manual hack to load the entire blog into one page in a web browser, then save the resulting HTML, though a similar technique is offered for saving the contents of your XML feed.

There are a few problems with this technique:

  1. It depends on knowing how many posts are in the blog, up front.
  2. The steps and tools given are manual.
  3. Comments are handled separately.
A backup needs to be automated. If I have to remember to do something by hand, it isn't going to be done on a regular basis. I want to add to my blog without worrying about how many posts there are and tweaking some backup procedure that depends on knowing all about the content of the blog up front. I want comments saved automatically along with each post, not in one big lump. And if I need to import the data into a database, I want the backup format to support parsing the data easily.

What to do?

Enter BlogBackup, the unimaginatively named, fully automatic, backup software for your blog. Just point the command line tool at your blog feed and a directory where the backup output should go. It will automatically perform a full backup, including:
  1. Every blog post is saved to a separate file in an easily parsable format, including all of the meta-data provided by the feed (categories, tags, publish dates, author, etc.).
  2. Comments are saved in separate directories, organized around the post with which they are associated. Comments also include all of their meta-data.
  3. The content of blog posts and comments are copied to a separate text file for easy indexing by desktop search tools such as Spotlight.
Since the tool is a command line program, it is easy to automate with cron or a similar scheduling tool. Since it is fully automatic and reads the feed itself, you do not need to reconfigure it as your blog grows. And the data is stored in a format which makes it easy to parse to load into another database of some sort.

So, go forth and automate.

Thursday, February 8, 2007

Hawk Wings and Mail Archiving

I'm a little behind on my reading, so I just noticed that Tim over at Hawk Wings is linking to MailArchiveByDate. I guess that explains the email I've received in the past few days asking for help. :-)

Tim comments that my update notes for the 1.2 release don't convey much meaning. I looked, and sure enough, they aren't end-user-ready release notes. I'll try again. The original version of the script asked Mail for the current selection. That meant, if you triggered the action, then changed the selection by clicking on the next message, the wrong message might be archived. The new version uses the selection information passed to the script as an argument, so it is more reliable.

That's still not very interesting, unless you are writing your own AppleScripts. Suffice to say, if you are planning to giving it a try, download the most recent version posted.

Sunday, February 4, 2007

Better blogger backups

I have enhanced the blog backup script I wrote a while back to automatically find and include comments feeds, so comments are now archived along with the original feed data. The means for recognizing "comments" feeds may make the script work only with blogger.com, though, since it depends on having "comments" in the URL. This does what I need now, though.

Saturday, February 3, 2007

Adium 1.0

My ChatMonitor script does not work with Adium 1.0. It looks like the "chat" object no longer contains "content" objects. I haven't yet figured out how to get the content from a chat window. Oh, well. I guess it's time to order those OS X programming books!