We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#!sieve if allof ( not ( header :contains ["To","Resent-to"] "[email protected]" ) ){ discard; }
For all rules containing the not keyword this parsing error occurs: parsing error: left_parenthesis found while identifier expected near ' '
The text was updated successfully, but these errors were encountered:
I use the following to fixup the sieve rule, then it parses correctly
#!python re.sub(r'not \((.*?)\)', r'not \1', sieverule, flags=re.DOTALL)
Original Comment By: Daniël van Eeden
Sorry, something went wrong.
It seems that Sun/Oracle is not following the RFC here.
Oracle/Sun:
RFC:
#!sieve if allof ( not header :contains ["To","Resent-to"] "[email protected]" ){ discard; }
It seems to work if I cahnge NotCommand to this:
#!python class NotCommand(TestCommand): accept_children = True variable_args_nb = True args_definition = [ {"name": "tests", "type": ["testlist"], "required": True} ] def get_expected_first(self): return ["left_parenthesis"]
No branches or pull requests
For all rules containing the not keyword this parsing error occurs:
parsing error: left_parenthesis found while identifier expected near '
'
The text was updated successfully, but these errors were encountered: