Comment 134 for bug 567480

This patch fixes the issue for me, on the calendar side at least.

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110429 Lightning/1.0b3pre Thunderbird/3.1.10

I have two IMAP mailboxes and several calendars. Before there were many prompts at startup; now there are only two. (There is only one prompt if I get rid of one of the IMAP mailboxes.)

@Ronny: What happens if you apply this patch to the current Lightning code base, using a nightly snapshot or Mercurical?