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 ----- "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]
