OfflineIMAP/offlineimap — pull request #54 by mativs (2013-09-24 21:17:14+00:00)
Title: Optional TLS

I have just adapt the code to fulfil this old debian patch I've found on internet written by Kapil Hari Paranjape . You can find more information in this link

>I need to connect to a badly configured server that advertises STARTTLS
>but is not properly configured for it :(
>
>So I created an option 'tls' which allows me to disable the use of
>STARTTLS for this server.

Hope it helps