Which mozilla-* is being compiled? comm-central knows!

I’ve just checked in a patch that means we can now check whether comm-central is building against mozilla-central or mozilla-1.9.1.

MOZILLA_1_9_1_BRANCH is now defined when we are building against mozilla-1.9.1.

The focus for Thunderbird, SeaMonkey and Calendar projects is currently building comm-central with mozilla-1.9.1 and completing the current releases we are working on.

The define will allow us to maintain builds against mozilla-central so that we don’t drift too far away from the mozilla-central development, so that when we ship our releases and go back to work against mozilla-central, we don’t have a big hit to get our applications working again.

The define is not for branching comm-central development. We will branch comm-central formally when we reach that stage.

Address Collection Improvements

I have just pushed an improvement to address collection in the Address Book.

In Thunderbird 2, when you send an email, and you have address collection switched on, it checks only within the address book you are collecting email addresses to for existing addresses on contacts.

After the next nightlies, the Thunderbird 3 development builds will now check for email addresses across all local (but not LDAP) address books before creating a new contact. This is a significant improvement over the current functionality, and should help to reduce duplicate email addresses and allowing users to organise their emails how they like.

There is still an outstanding issue, covered by a few bugs, that we do a case-sensitive match for the email address and I hope to resolve that before Thunderbird 3.

MailNews Unit testing now includes IMAP protocol

Earlier today, Joshua checked in a patch that implements a partial IMAP fake server (and a test using it).

This is good news as it now means all our protocols (IMAP, POP3, SMTP, NNTP) now have some basic tests for them. I think the incoming protocols all have some form of testing retrieval of email/posts, and outgoing tests include basic message sending. This is a good start and I look forward to seeing these tests, and the protocols the fake servers implement being extended.

If anyone is attempting to implement tests with the fake servers (or any MailNews unit test) and are having trouble with interfaces or tests being complex, please let myself or Joshua know (or file a bug) and we’ll see what we can do to improve the support infrastructure.