Replies: 2 comments 1 reply
-
well, the manage sieve RFC explicitly limits the active script to exactly one or zero.
And there is a good reason for that. Having more than one script active you mean you need to specify the precedence between the scripts in some way. Which would add an unnecessarily layer of complexity to the sieve protocol. Thus the specification limits this to at most one. If you want to split the code among different scripts the normal and portable way is to use the "include" command. But this needs to be supported by your server. If you want to deactivate a block. The normal and portable way would be to wrap this block into a if false statement. Or comment it in code but then it is no more displayed in the Graphical Editor. And yes I know some of the Sieve UIs offer a special logic, which abuses comments to embed proprietary meta information into the sieve script and at the same time they artificially limit the complexity of scripts to a tiny subset. So that they can offer a simplified UI. The problem with such an approach is that it is designed to fail and works horribly bad in real world scenario where you edit a script with more than one editor. This is because it is not standardized thus not portable. It would also mean, the sieve editor would have to implement a parser for any of those meta information languages and guess correctly in which dialect was used to create this and which subset is used by the UI on the server. Or even worse define it own proprietary subset of commands which can be only understood by this sieve editor. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply! I understand the RFC in general. The behavior is clear to me. It's a constructive suggestion that I think would do a lot to improve usability. Means, you can see every filter/rule on by one, even if it's only one in the background. I also understand the point of view that every programm will create their own filters. Mb I can't change this rules in another editor anymore. Mb it works and you break the view in the programm you first used. I think if you are aware of this and only use one program, there are no problems. I can manage multiple filter like in this example. For the user it looks like there are different filter rules. Now I can have a look at this rule with the Sieve Filter tool and it shwos me only one rule. This rule I created in my SOGo backend for sure. And this provides me with a view of this different filters. When we look into the code of this one rule
And the UI (script) view looks like this As you mentioned, when I user the Sieve Filter tool to change the filter rule. I added another fileinto operation, I wont show up in the SOGo backend. I know, when I use the Sieve Filter tool I get the full output of the whole filter rule. Isn't it a nice to have for the sieve filter tool, to show this one sieve script as multiple different filter rules. Mb there is a special "#name" between the filter rules egg. Sieve may not be able to do this by default. But you could at least make the appearance of the filter individually. For example there is an absence filter. This is only active on certain dates. I can go here, define it somewhere in the script and then manually comment it out. But this filter is somewhere in between all the other filters that grow over time. It was about usability / user friendliness. We as IT people can do this very easily, a normal user cannot use it. |
Beta Was this translation helpful? Give feedback.
-
The sieve program (windows) gives me the opportunity to create several scripts. However, only one script can be active at a time. The behavior is correct because all rules are in one file.
I have the possibility (dovecot mailserver) to create several scripts in my webmailer "SOGo" (this is how it is suggested to the user). The individual queries / rules can be seen one below the other and can be edited / deleted individually.
It would be a great feature if you could see these individual queries / rules among each other and edit them individually. You could even deactivate individual queries by commenting out.
That would be an incredibly big plus for clarity!
Regards,
Daniel
Beta Was this translation helpful? Give feedback.
All reactions