Tuesday 24 June 2008

Thunderbird: IMAP Mailbox isn't selectable

There was a problem with Thunderbird that was bugging me for a long while. If I did a search across all my folders, I would always get a pop-up window with the message "not a selectable mailbox" or something like that.

Finally today I decided to investigate how to solve this and I found this blog entry. I tried it, and it worked! This is what I did:
  • I located the .mailboxlist file that lists all the folders of the offending IMAP account. In my case the file was in my home directory. Easy!
  • In .mailboxlist I deleted the entries to the offending folders. Apparently they should haven't been listed there. These folders are meant to be carriers of other folders and therefore they have no messages. Why the file .mailboxlist lists them, I don't know and I would love to hear if someone knows.
  • In my Thunderbird profile folder I went to the directory ImapMail/my.offending.imap.account. In my case the Thunderbird folder is .thunderbird. This folder has a directory with a strange name and the suffix .default; this is the default profile. In this default profile I found ImapMail.
  • Inside that my.offending.imap.account directory there is a list of files with suffix .msf. I simply deleted the files that corresponded with the offending folders.
  • I restarted Thunderbird... and voilĂ , now the offending folders are greyed out and in italics. And there were no more errors of this type.
What a relief.

Thunderbird and Gmail

I'm always trying to find the best way to manage my email. For a very long time I've been using Thunderbird as the main mail reader for various reasons:
  • It is available in Windows and Linux
  • There is a portable version that runs on a USB stick
  • There is a large list of extensions (though far less than firefox)
A problem with Thunderbird, though, is its clumsy use of tags. Up to version 2.0 the only way to manage one's mail was to file them into folders and subfolders. Versions pre-2.0 had the ability to tag mail according to a predefined set of 5 tags, each one able to highlight the email with a different colour. Here are the default colours:
  1. important
  2. work
  3. personal
  4. todo
  5. later


Most interesting of all, each tag had a shortcut number (1 to 5), so it was very easy to categorise the email as you read it.

Version 2.0 allows the possibility of adding your own tags, and to add several tags to each mail message. That's great, I thought, but there is one serious shortcoming: the tag labels are not stored in the imap server. Or so it seems, since if I define a new tag in my work computer and use it to tag an email, I won't be able to see the tag in my home computer.

So, really, Thunderbird 2.0 tags are cumbersome if you use several computers, since you would need to define exactly the same set of tags in every copy of your Thunderbird.

This is one of the main reasons that has led me to gmail. This is Google's popular email service, and it does allow the use of tags. Google's tags are very flexible:
  • Email messages can have multiple tags
  • Tags can be arranged in hierarchies
  • It is relatively easy to filter all messages by tags
Best of all, there is a Firefox extension called GTDInbox that makes the interface with gmail so much more productive, enabling one to apply GTD (Getting Things Done) techniques to the email. But the Gmail interface, even after the extension of GTDInbox, is clumsy and slow. Really, what one needs is to use Gmail server via a local client like Thunderbird.

Is there a way to get the best of both? I think so. Gmail messages can be accessed via imap, and therefore it is possible to use Thunderbird to read Gmail messages without having to download them to the local computer. But currently I'm not aware of any extension that would make it possible to assign Gmail tags from Thunderbird in an easy manner. The way to filter by tags with the imap interface to gmail is via folders. For example, if an email is tagged "office", then Thunderbird will have a folder called "office" with this and all other messages that have that label. So it is very easy to filter by tag.

If one wants to assign a tag to a message, say "todo", one just needs to copy the message to the "todo" folder. If one wants to remove a tag, just delete the message from the folder that has the tag name. All of this and more is explained in this fine blog posting.

Still, wouldn't it be better to assign and delete tags with the click of a button or using a drop-down list? and how does one know what are the tags associated to a particular email?

It would be an excellent idea to build a Thunderbird extension that makes the best of Gmail's tags. Is anybody up to the challenge?

Friday 6 June 2008

Who am I?

OK, I've just created this blog. Blogs are like beasts that are difficult to train and they tend to have their own life, so it's difficult to predict what will end up here. But my intention is to use this blog to comment about the thoughts that I sometimes have while doing my work, or while using computers.

So, to give people an idea of what sort of things will appear in this blog, I'll just write a few lines about me.

I work as a senior lecturer at Macquarie University. My teaching duties typically include introduction to programming for first-year students, and units about language technology. For example, this is what I was teaching this semester (first semester of 2008):
  • COMP125: Fundamentals of Computer Science
  • COMP348: Document Processing and the Semantic Web
  • COMP448: Advanced Topics in Natural Language Processing
I'm an active member of the Centre for Language Technology, of the Australasian Language Technology Association (ALTA), and of HCSNet, a network of researchers in the area of human communication science.

So, I spend most of my time in front of a computer, either preparing lectures, or doing research on various aspects of language technology... but you can read all about me in my webpage.

Enough for an introduction.