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(services/folder): improve folder name extraction for IMAP listing #47

Merged
merged 3 commits into from
Oct 26, 2024

Conversation

MohmdFo
Copy link
Collaborator

@MohmdFo MohmdFo commented Aug 22, 2024

Enhanced the list_folders function in sage_imap/services/folder.py to better handle folder name extraction when listing IMAP folders. The previous implementation had potential issues with folder names that did not conform to the expected format. The new implementation uses a regular expression to extract the folder name more reliably. Additionally, fallback logic has been added to handle cases where the folder name format is unexpected.

Closes #46.

Enhanced the `list_folders` function in `sage_imap/services/folder.py` to better handle folder name extraction when listing IMAP folders. The previous implementation had potential issues with folder names that did not conform to the expected format. The new implementation uses a regular expression to extract the folder name more reliably. Additionally, fallback logic has been added to handle cases where the folder name format is unexpected.

Closes sageteamorg#46.
Copy link
Contributor

@ARYAN-NIKNEZHAD ARYAN-NIKNEZHAD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a pull request to the develop branch not the main branch

- Remove legacy config files (.flake8, .pylintrc, mypy.ini, setup files)
- Update .gitignore, .pre-commit-config.yaml, .readthedocs.yaml
- Add CODE_OF_CONDUCT.md and tox.ini
- Modify dependency files (poetry.lock, pyproject.toml)
- Update sage_imap and stubs for compatibility
@sepehr-akbarzadeh sepehr-akbarzadeh merged commit 1acbb95 into sageteamorg:main Oct 26, 2024
1 check failed
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

Successfully merging this pull request may close these issues.

Lack of Support for HostPapa Mailbox in list_folders Function
3 participants