mozilla-b2g/gaia-email-libs-and-more — pull request #72 by asutherland (2012-10-29 22:29:56+00:00)
Title: Bug 796814 - [email] Email shows a black-screen on startup if there was a network problem when creating the account and there are no known folders. Remove assertion and automatically resync.

f? @mozsquib

https://bugzilla.mozilla.org/show_bug.cgi?id=796814

This makes syncFolderList a job/operation that is automatically scheduled at MailUniverse._loadAccount time if enough time has passed since the last successful sync. It also creates an inbox account if one does not exist for both IMAP and ActiveSync. In both cases, we do a little bit of fix-up.

I think I want to do some extra testing on this, but if you could take a gander, that would be great.