Optional TLS

I have just adapt the code to fulfil this old debian patch I've found on internet written by Kapil Hari Paranjape <kapil@imsc.res.in>. You can find more information in this link <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681494>

>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

I'm not sure. I was adapting the patch to this pull request. I guess, as offlineimap is using "0" and "1" for example in the previous method "getssl", I think the original author was trying to respect that.