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