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 regular expression for RE_PRECEDING #613

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hubermat
Copy link

@hubermat hubermat commented Jun 1, 2017

The current regex also matches strings like

IDLE OK Idle completed (0.001 + 26.237 + 26.239 secs).

which it shouldn't. As a result, for IMAP servers returning the above string, the client does not correctly leave idle mode.

The regex is missing a ^ in the second case (before the +). I would have expected too, that one ^ at the beginning would be enough, but the | ignores the ^ and then every + is matched.

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.

1 participant