k9mail/k-9 — pull request #227 by zjw (2013-01-12 21:54:02+00:00)
Title: Issue 2389:  Self signed certificate expiry causes silent send/receive failure

This is rebase of pull request 154 (which I will close) on the current master so that it again applies cleanly.

Presently, k9mail silently fails when there is a certificate problem (such as when a locally stored certificate has expired). As a result, the user may go for some time without knowing that their email isn't being fetched, or else the user may recognize that there is a problem but not know its cause.

With this patch, a CertPathValidatorException or CertificateException will create a "Certificate error: Check your server settings" notification in the status bar. When the user clicks on the notification, they are taken to the appropriate server settings screen where they can review their settings and can accept a different server certificate.

Link: Issue 2389