Created attachment 609317 [details] [diff] [review] Patch accountManager.defaultAccount throws if there's no default account. There was some effort in bug 342632 to change that, but it got stalled. I think just getting rid of the noise in the terminal would already be an improvement. This is what the patch I'm attaching does (it doesn't hide the error when it's unexpected; it will go to the console instead of the terminal).
Comment on attachment 609317 [details] [diff] [review] Patch Whilst I think this is fine, David knows a bit more about the accounts system than I do.
Can't we set some account to be the default automatically? Or is this in the case there really doesn't exist any account?
Sorry again, seems that is what http://mxr.mozilla.org/comm-central/source/mailnews/base/src/nsMsgAccountManager.cpp#772 is doing :)