Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2585

As an admin, I can manage sieve scripts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      See https://ci.linagora.com/linagora/lgs/openpaas/james/issues/833 for the context of this task
      The goal is to allow the admin to manage user Sieve scripts.
      This should allow webadmin to leverage the feature of the AddActiveSieveScript command.
      Story:

      As an admin, using the WebAdmin protocol...
      
      ... Upload a new Sieve Script
      

      API proposal

      404 if the user does not exist

      POST /sieve/bob@domain.tld/scripts/script_name.sieve
      
      '
      require "fileinto";
      require "body";
      
      if body :raw :contains "invalid" {
          fileinto "INBOX.select";
      } else {
          fileinto "INBOX.not.selected";
      }
      '
      

      will create the Sieve script
      You will add a activate query parameter for automatically activating the script.

      POST /sieve/bob@domain.tld/scripts/script_name.sieve.activate=true
      
      '
      require "fileinto";
      require "body";
      
      if body :raw :contains "invalid" {
          fileinto "INBOX.select";
      } else {
          fileinto "INBOX.not.selected";
      }
      '
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            datpham Dat Pham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: