mozilla-b2g/gaia — pull request #6962 by mozsquib (2012-12-12 00:08:22+00:00)
Title: Bug 816922 - [email/activesync] Improve error handling and logging

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

This is a speculative fix for the CSP issues in bug 816922. It improves our error handling, and logs any WBXML parsing errors we see to the console, which should mean that 1) only broken messages won't be shown (instead of broken messages breaking the whole folder), and 2) if there are still more problems, the logs should be more informative.

The original PR for GELAM is here and has r+ from @asutherland: https://github.com/mozilla-b2g/gaia-email-libs-and-more/pull/97