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

parse roundcube managesieve plugin comments #105

Open
chongma opened this issue Apr 19, 2021 · 5 comments
Open

parse roundcube managesieve plugin comments #105

chongma opened this issue Apr 19, 2021 · 5 comments

Comments

@chongma
Copy link

chongma commented Apr 19, 2021

When editing rules using roundcube managesieve plugin it puts the rule names at the top of each rule in the format, e.g

# rule:[job]
if anyof (header :contains "from" "noreply@domain.tld")
{
	fileinto "Job";
}

Is there any way to preserve that format? And also if possible to search by the rule name?

@chongma
Copy link
Author

chongma commented Apr 28, 2021

Hi, can anyone help me use this lib?

@tonioo
Copy link
Owner

tonioo commented Apr 30, 2021

@chongma This library was not designed to read Roundcube generated files.

@chongma
Copy link
Author

chongma commented May 1, 2021

@tonioo Roundcube and sieve are quite popular have you considered adding support?

@helmut2
Copy link

helmut2 commented Oct 22, 2021

A sightly more general question: Is there a way to retain the comments of an input file in the output? I've just started to look at sievelib and ran "python parser.py -v --tosieve somefile.sieve", which removed all comments. Do I overlook some option or is it necessarily so?

@chongma
Copy link
Author

chongma commented Oct 24, 2021

@helmut2 thanks this is what i was really asking. if there is some way to retain the comments. and better still to generate comments in the output.

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

No branches or pull requests

3 participants