Python 3.12 and assorted fixes
This PR makes the app work for python 3.12. It incorporates the fix from https://github.com/pulb/mailnag/issues/245#issuecomment-1753068005. Closes:
- [x] #244
- [x] #245
Some other improvements:
Fix SSLV3_ALERT_HANDSHAKE_FAILURE for some imap servers
Connections to some imap servers (e.g. imap.pku.edu.cn) fail after upgrading to python 3.10. This is because they use old, less secure ciphers that are disabled for Python 3.10. In order to connect to those servers, we have to allow more ssl ciphers in imaplib2 for Python 3.10. See:
- https://stackoverflow.com/a/71007463
- https://www.openssl.org/docs/manmaster/man1/openssl-ciphers.html#CIPHER-LIST-FORMAT
Also,
- Exit gracefully when autostart creation fails
- Use raw strings for backlashes
Any hopes to get this and other fixes included in a new release?
Any hopes to get this and other fixes included in a new release?
It seems that mailnag is unmaintained. I will keep this PR open here, tracking my own minimal, personal fork. There are other forks with this patch merged while incorporating other improvements at the same time. You can track one of those forks (but with due caution! :warning: There is no guarantee for the security of forks (including my own) :laughing: