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

[FIX] mail: handle IMAP connection errors in fetch_mail method #166118

Draft
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

aamo-odoo
Copy link
Contributor

The error indicates that the CLOSE command is being issued to an IMAP server while the connection is in the AUTH state rather than the SELECTED state. In IMAP, the CLOSE command can only be issued when a mailbox is selected.

Error:
IMAP4.error command CLOSE illegal in state AUTH, only allowed in states SELECTED

This commit will handle IMAP4.error exceptions and raise a warning message when an error occurs.

sentry - 5371607133


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo
Copy link
Contributor

robodoo commented May 20, 2024

Pull request status dashboard.

@C3POdoo C3POdoo added the RD research & development, internal work label May 20, 2024
The error indicates that the 'CLOSE' command is being issued to an IMAP server
while the connection is in the 'AUTH' state rather than the 'SELECTED' state.
In IMAP, the 'CLOSE' command can only be issued when a mailbox is selected.

Error: IMAP4.error
command CLOSE illegal in state AUTH, only allowed in states SELECTED

This commit will handle IMAP4.error exceptions and raise a warning message when
an error occurs.

sentry - 5371607133
@aamo-odoo aamo-odoo force-pushed the 16.0-sentry-5371607133-IMAP4.error-mail-aamo branch from efab9d0 to f094487 Compare May 21, 2024 08:40
@aamo-odoo
Copy link
Contributor Author

Hello @odoo/sentry_reviewers

Please review this PR 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants