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.
-
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