mozilla-b2g/gaia — pull request #11928 by mcav (2013-09-04 16:57:08+00:00)
Title:  Bug 847032 - [email] IMAP only supports initially-SSL encrypted connections, STARTTLS upgrade not supported from unencrypted cleartext.

Adds support for STARTTLS in both IMAP and SMTP using mozTCPSocket.upgradeToSecure().