james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-2150) Upload Sieve scripts via the CLI
Date Thu, 26 Jul 2018 07:09:00 GMT

    [ https://issues.apache.org/jira/browse/JAMES-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16557989#comment-16557989

ASF GitHub Bot commented on JAMES-2150:

Github user mbaechler commented on a diff in the pull request:

    --- Diff: server/container/cli/src/main/java/org/apache/james/cli/probe/impl/JmxSieveProbe.java
    @@ -74,6 +74,7 @@ public void removeSieveQuota(String user) throws Exception {
         public void addActiveSieveScript(String user, String name, String script) throws
Exception {
    +        sieveRepositoryManagement.addActiveSieveScript(user, name, script);
    --- End diff --
    > What about passing the path to the file containing the script instead? Wouldn't it
be more user friendly?
    The unix way is to read it from standard input and/or file

> Upload Sieve scripts via the CLI
> --------------------------------
>                 Key: JAMES-2150
>                 URL: https://issues.apache.org/jira/browse/JAMES-2150
>             Project: James Server
>          Issue Type: New Feature
>          Components: CLI
>    Affects Versions: master
>            Reporter: Tellier Benoit
>            Priority: Major
>              Labels: feature, newbie
> James has an interface for storing Sieve scripts.
> We want to offer the opportunity to users to simply upload SIEVE scripts via CLI to easily
enable Sieve script usage. (Without requiring ManageSieve or the like).
> Thus:
>  - We need to modify SieveRepositoryManagementMBean and SieveRepositoryManagement to
allow single script upload and activation
>  - We need to add the corresponding CLI command (AddSieveScript) in CmdType
>  - Add the corresponding tests in CmdTypeTest
>  - Add the code for handling your commands in ServerCmd using the probe object.
>  - Add the corresponding tests in ServerCmdTest
> Don't hesitate to ask for help on the Gitter chat.

This message was sent by Atlassian JIRA

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

View raw message