quentinsf / IMAPdedup

IMAP message de-duplicator
https://quentinsf.com/software/imapdedup
GNU General Public License v2.0
323 stars 57 forks source link

ssl issue? #72

Open thirs opened 1 year ago

thirs commented 1 year ago

Hi,

Running imapdedup with -x yields the following

  File "/home/thirs/systeme/IMAPdedup/imapdedup.py", line 603, in <module>
    process(options, mboxes)
  File "/home/thirs/systeme/IMAPdedup/imapdedup.py", line 415, in process
    server.starttls()
  File "/usr/lib/python3.10/imaplib.py", line 822, in starttls
    self.sock = ssl_context.wrap_socket(self.sock,
  File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.10/ssl.py", line 1071, in _create
    self.do_handshake()
  File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: UNEXPECTED_MESSAGE] unexpected message (_ssl.c:997)

Any hints?

quentinsf commented 1 year ago

Hi thirs - No, I've not come across that one before. I've seen slightly similar errors reported on other projects due to the different ciphers supported in different versions of Python 3. Perhaps your server expects something that doesn't match?

For what it's worth, I've just tried connecting to my (Fastmail) account using Python 3.10.9 on my Mac and it works OK.

Quentin