-
Notifications
You must be signed in to change notification settings - Fork 47
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
ParseError due to unsupported flag #163
Comments
@awein Which version of the webmail do you use? |
@tonioo Sorry for not mentioning the versions: |
That's strange, the regex cleary allows this kind of token: https://github.com/modoboa/modoboa-webmail/blob/master/modoboa_webmail/lib/fetch_parser.py#L93 |
Sure - but This snippet should be enough to reproduce the issue:
|
Indeed, there is a lexer rule conflict and the fix is more complicated than expected... |
Emails that use a flag value without a leading
\
or$
will cause an internal error:ParseError: unexpected data_item found while looking for flag|right_parenthesis
Example:
FLAGS (\Seen JUNK $Junk)
The text was updated successfully, but these errors were encountered: