Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssl issue? #72

Open
thirs opened this issue Jan 3, 2023 · 1 comment
Open

ssl issue? #72

thirs opened this issue Jan 3, 2023 · 1 comment

Comments

@thirs
Copy link

thirs commented Jan 3, 2023

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants