Boris Burtin [mailto:[EMAIL PROTECTED] wrote on: 18 October 2008 00:00 > Thanks for following up so quickly. When a user moves or > renames a folder, we want to update any filter rules that > reference the folder. I actually have a workaround: Node -> > our XML syntax -> Sieve. Icky, but it works. I'll file an > enhancement request in JIRA to add a standard Node -> String > conversion API. > > Thanks! > > Boris
Boris Again, just because I'm curious. A few questions. Is this needed because you don't keep the original Sieve scripts after parsing or because you are dynamically modifying the nodes and want to capture the results as a Sieve script? Does your workaround mean you have node->your XML syntax conversion coded already? Finally, when you say "we" does this mean Zimbra? What's the story? It is always a boost to know when a community's efforts are proving worthwhile to others. Often it is hard to tell. Cheers -- Steve > ----- "Steve Brewin" <[EMAIL PROTECTED]> wrote: > > > Boris Burtin [mailto:[EMAIL PROTECTED] wrote on: 17 October 2008 > > 22:00 > > > > > Is it possible to generate a Sieve script from a Node tree? I > > > have code that manipulates a tree in-place, and I'd like to > > > get the modified script as a String. I assumed this would be > > > easy, but I can't seem to find the right API to do it. > > > > > > Thanks in advance, > > > > > > Boris > > > > The only translation from nodes to another form I know of is to > > generate JSieve operations. You could mirror the same code > pattern to > > emit other forms such as a Sieve script. > > > > I'm curious about your use case. What is the driver for wanting this > > ability? > > > > Cheers > > > > --Steve > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
