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

Updating filters without name #39

Open
fernand0 opened this issue Dec 4, 2015 · 2 comments
Open

Updating filters without name #39

fernand0 opened this issue Dec 4, 2015 · 2 comments

Comments

@fernand0
Copy link
Contributor

fernand0 commented Dec 4, 2015

Hello,

let us suppose that I want to manage my existing filters with a program which uses sievelib. If I understand correctly, if I wanted to add a new condition to an 'IfCommand' I should:

  1. parse my filters
  2. find the one that I want to modify
  3. construct a new one with the previous conditions and the new condition
  4. use updatefilter or replacefilter
  5. store the new filter

My problem:
updatefilter needs a name in order to work. Wouldn't it be nice to have the possibility to change a filter by its position instead of the name? Maybe I'm wrong and this is not the adequate way of dealing with these things.

Thanks!

@tonioo
Copy link
Owner

tonioo commented Dec 4, 2015

Hi,
it should be possible to implement a mode where filters are not referenced by a name but by an index (or a position like 1, 2, 3, etc.)
Such a mode would be exclusive, ie. a same sieve file won't be able to use names and indexes.

Could you explain your use case a bit more ?

@fernand0
Copy link
Contributor Author

fernand0 commented Dec 4, 2015 via email

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

2 participants