You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
imaplib problem with the "Enable" capability #103451
When connecting to gmail via imaplib, you can't use mail.enable("UTF8=ACCEPT"), it always returns the error "imaplib.IMAP4.error: Server does not support ENABLE". But the server returns both "Enable" and "UTF8=ACCEPT" in capabilities. I commented out the line in imaplib, which causes this error, and everything works correctly. For some reason these parameters are not passed to capabilities.
This appears to be a result of #63121. The library is using the original capabilities received before authentication, but servers including Gmail can change their capabilities afterwards.
Activity
vadmium commentedon Apr 14, 2024
This appears to be a result of #63121. The library is using the original capabilities received before authentication, but servers including Gmail can change their capabilities afterwards.
gh-63121: Refresh imaplib capabilities on state changes (GH-152752)
[3.14] gh-63121: Refresh imaplib capabilities on state changes (GH-15…
[3.15] gh-63121: Refresh imaplib capabilities on state changes (GH-15…
[3.13] gh-63121: Refresh imaplib capabilities on state changes (GH-15…