Make the mail example imap4client.py compatible with servers require SSL
|Reported by:||argonemyth||Owned by:||Itamar Turner-Trauring|
branch-diff, diff-cov, branch-cov, buildbot
The example only works with an IMAP server that doesn't require SSL. The script hangs if you try to access servers like imap.gmail.com. I guess a lot of people might try Gmail with this script, it's better to make it compatible with servers that require SSL.
The script should also stop the reactor once the job is finished.