mozilla-b2g/gaia-email-libs-and-more — pull request #56 by asutherland (2012-09-29 15:45:38+00:00)
Title: [imap] properly shunt login errors to probe error handler

@mozsquib here is the fix for https://github.com/mozilla-b2g/gaia/issues/5502

I use false rather than null when zeroing mainly so if I were to look at the state of the prober in a debugger after the fact it's clear that it was initialized at some point but we explicitly cleared it.

Note that when testing, if you are like me, you may experience paint problems where we show the error but you have to hold the home button to actually see that we showed the error 'unknown'. We really want that to be the user/pass thing, but I'd like to do that as a follow-up.