You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Boris Burtin (JIRA)" <se...@james.apache.org> on 2008/10/20 22:01:44 UTC

[jira] Created: (JAMES-879) Add API for generating a Sieve script from a parse tree

Add API for generating a Sieve script from a parse tree 
--------------------------------------------------------

                 Key: JAMES-879
                 URL: https://issues.apache.org/jira/browse/JAMES-879
             Project: JAMES Server
          Issue Type: Improvement
          Components: James Core
    Affects Versions: 2.3.1
            Reporter: Boris Burtin


There's currently no way to generate a Sieve script from a jSieve Node tree.  This would be very helpful for cases where you need to parse a script, modify some nodes, and then generate a new script that incorporates the changes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JSIEVE-43) Add API for generating a Sieve script from a parse tree

Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JSIEVE-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653469#action_12653469 ] 

Robert Burrell Donkin commented on JSIEVE-43:
---------------------------------------------

http://markmail.org/message/yfogd4dn2x4rtfnb

> Add API for generating a Sieve script from a parse tree 
> --------------------------------------------------------
>
>                 Key: JSIEVE-43
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-43
>             Project: JAMES jSieve
>          Issue Type: New Feature
>    Affects Versions: 0.2, 0.3, 1.0
>            Reporter: Boris Burtin
>
> There's currently no way to generate a Sieve script from a jSieve Node tree.  This would be very helpful for cases where you need to parse a script, modify some nodes, and then generate a new script that incorporates the changes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JSIEVE-43) Add API for generating a Sieve script from a parse tree

Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JSIEVE-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653491#action_12653491 ] 

Robert Burrell Donkin commented on JSIEVE-43:
---------------------------------------------

Had a little think about design. Would like to be flexible enough to support various output pipelines: should be able to write out a Sieve script or xml. 

Implementing SieveParserVisitor seems like the best place to start. This visitor is designed to perform it's own tree recursion which suits well. 

The classic first stage of the pipeline is to turn the tree recursion into a linear series of start and end events. For flexibility, these should be node based. This will end up a rather large API with each start and end calls for each concrete node type.

This would probably be enough to plugin custom output to strings including basic XML rendering. More stages in the pipeline would be required for more sophisticated such as XML pipelining.

On balance should be very do-able.

> Add API for generating a Sieve script from a parse tree 
> --------------------------------------------------------
>
>                 Key: JSIEVE-43
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-43
>             Project: JAMES jSieve
>          Issue Type: New Feature
>    Affects Versions: 0.2, 0.3, 1.0
>            Reporter: Boris Burtin
>
> There's currently no way to generate a Sieve script from a jSieve Node tree.  This would be very helpful for cases where you need to parse a script, modify some nodes, and then generate a new script that incorporates the changes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Closed: (JSIEVE-43) Add API for generating a Sieve script from a parse tree

Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JSIEVE-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Burrell Donkin closed JSIEVE-43.
---------------------------------------

    Resolution: Fixed

Basic implementation completed. Maybe consider adding pretty printing later.

> Add API for generating a Sieve script from a parse tree 
> --------------------------------------------------------
>
>                 Key: JSIEVE-43
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-43
>             Project: JAMES jSieve
>          Issue Type: New Feature
>          Components: Util
>    Affects Versions: 0.2, 0.3, 1.0
>            Reporter: Boris Burtin
>            Assignee: Robert Burrell Donkin
>             Fix For: 0.3
>
>
> There's currently no way to generate a Sieve script from a jSieve Node tree.  This would be very helpful for cases where you need to parse a script, modify some nodes, and then generate a new script that incorporates the changes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JSIEVE-43) Add API for generating a Sieve script from a parse tree

Posted by "Steve Brewin (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JSIEVE-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Brewin updated JSIEVE-43:
-------------------------------

    Issue Type: New Feature  (was: Bug)

> Add API for generating a Sieve script from a parse tree 
> --------------------------------------------------------
>
>                 Key: JSIEVE-43
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-43
>             Project: JAMES jSieve
>          Issue Type: New Feature
>    Affects Versions: 0.2, 0.3, 1.0
>            Reporter: Boris Burtin
>
> There's currently no way to generate a Sieve script from a jSieve Node tree.  This would be very helpful for cases where you need to parse a script, modify some nodes, and then generate a new script that incorporates the changes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JSIEVE-43) Add API for generating a Sieve script from a parse tree

Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JSIEVE-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654179#action_12654179 ] 

Robert Burrell Donkin commented on JSIEVE-43:
---------------------------------------------

Started work in util module for now. Will need to review thsi decision later.

> Add API for generating a Sieve script from a parse tree 
> --------------------------------------------------------
>
>                 Key: JSIEVE-43
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-43
>             Project: JAMES jSieve
>          Issue Type: New Feature
>    Affects Versions: 0.2, 0.3, 1.0
>            Reporter: Boris Burtin
>
> There's currently no way to generate a Sieve script from a jSieve Node tree.  This would be very helpful for cases where you need to parse a script, modify some nodes, and then generate a new script that incorporates the changes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JSIEVE-43) Add API for generating a Sieve script from a parse tree

Posted by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JSIEVE-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Burrell Donkin updated JSIEVE-43:
----------------------------------------

      Component/s: Util
    Fix Version/s: 0.3
         Assignee: Robert Burrell Donkin

> Add API for generating a Sieve script from a parse tree 
> --------------------------------------------------------
>
>                 Key: JSIEVE-43
>                 URL: https://issues.apache.org/jira/browse/JSIEVE-43
>             Project: JAMES jSieve
>          Issue Type: New Feature
>          Components: Util
>    Affects Versions: 0.2, 0.3, 1.0
>            Reporter: Boris Burtin
>            Assignee: Robert Burrell Donkin
>             Fix For: 0.3
>
>
> There's currently no way to generate a Sieve script from a jSieve Node tree.  This would be very helpful for cases where you need to parse a script, modify some nodes, and then generate a new script that incorporates the changes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org