martinrusev / imbox

Python IMAP for Human beings
MIT License
1.18k stars 188 forks source link

Use TLS to secure the connection #209

Closed InsomniakD closed 2 years ago

InsomniakD commented 2 years ago

hello, i can't find any way to make TLS work with imbox is it possible to include an example in the readme.txt ? Thanks.

sebix commented 2 years ago

The example in the readme already contains ssl=True

InsomniakD commented 2 years ago

Yeah I know for SSL but I talk about TLS because SSL is a bit out of date When I type startTls=true I think some options are missing and I don't know them. Then if you now how to make it work it would be cool.

sebix commented 2 years ago

The starttls parameter is for STARTTLS, not for SSL/TLS. If you want to ensure that a specific SSL/TLS version is (not) used, you can create a custom ssl context (specifically the options minimum_version) and pass it as parameter ssl_context.

InsomniakD commented 2 years ago

oh okay thank you i will dig out in that way tho