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

Fixing regex for identifying IMAP folders by supporting "." delimiter #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Mocuto
Copy link

@Mocuto Mocuto commented Oct 18, 2023

In the series of commits, I update the EmailBox class such that it supports delimiting the inbox and flags via a ".", which is the format used by some IMAP servers. I test these changes locally and observe that they work correctly.

In the `update` method in the EmailBox class, there is a regex for checking the returned mail folders from the IMAP_SSL connection. However, this regex does not catch the case where in an inbox is specified in the format `(\\HasNoChildren) "." INBOX`. This is the format returned by my IMAP server and is valid.

This commit modifies the regex to allow either the '/' or '.' to separate the flags from the folder name.
Fixing regex for identifying IMAP inbox folders
@ddorn
Copy link

ddorn commented Jan 20, 2024

+1
I tested this modification and it also makes it work with my IMAP server that seems to use a "." instead of "/"

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.

2 participants