Details

      Description

      Hello,

      There are my contribution for Mailets of James. For support Scripting usign BeanShell.

      All you need is in:

      http://wiki.apache.org/james/BeanShell
      http://wiki.apache.org/james/BeanShellExamples

      Thanks!
      Guillermo

        Activity

        Hide
        Noel J. Bergman added a comment -

        Actually, we already have an unpublished contribution for a BSF Matcher and Mailet. Please see:

        http://mail-archives.apache.org/mod_mbox/james-server-dev/200306.mbox/%3c001001c33a8f$704a07a0$0901a8c0@synsys.com%3e

        let us know your thoughts after you compare the two.

        Show
        Noel J. Bergman added a comment - Actually, we already have an unpublished contribution for a BSF Matcher and Mailet. Please see: http://mail-archives.apache.org/mod_mbox/james-server-dev/200306.mbox/%3c001001c33a8f$704a07a0$0901a8c0@synsys.com%3e let us know your thoughts after you compare the two.
        Hide
        Guillermo Grandes added a comment -

        Well, seeing two versions and comments of Steve Brewin...

        Two versions compared + (positive) vs - (negative)

        ScriptedBeanShell
        + 70 lines of source code for Mailet / Matcher
        + Scripts in separated files
        + Don't need restart James for reload changes of scripts

        • Don't have mutli languaje scripting
          + BeanShell is true Java (JSR-274)
          + KISS principle,... Keep It Simple, Sweetheart!

        ScriptedBSF (IBM Bean Scripting Framework)

        • 500 lines of source code for Mailet / Matcher
        • Scripts inline (SAR-INF/config.xml)
        • Need restart James for reload chanages of config.xml
          + Mutli languaje scripting
          + BML, JScript (only win), Mozilla Rhino, NetRexx, PerlScript, VBScript, Jacl, JPython, LotusXSL
          ? Complex / Featured

        this is in broad strokes, normally would decide me by the simple thing (KISS principle), although I suppose that the support for several languages also would be useful.

        Before the doubt, I would put both! : -)

        Show
        Guillermo Grandes added a comment - Well, seeing two versions and comments of Steve Brewin... Two versions compared + (positive) vs - (negative) ScriptedBeanShell + 70 lines of source code for Mailet / Matcher + Scripts in separated files + Don't need restart James for reload changes of scripts Don't have mutli languaje scripting + BeanShell is true Java (JSR-274) + KISS principle,... Keep It Simple, Sweetheart! ScriptedBSF (IBM Bean Scripting Framework) 500 lines of source code for Mailet / Matcher Scripts inline (SAR-INF/config.xml) Need restart James for reload chanages of config.xml + Mutli languaje scripting + BML, JScript (only win), Mozilla Rhino, NetRexx, PerlScript, VBScript, Jacl, JPython, LotusXSL ? Complex / Featured this is in broad strokes, normally would decide me by the simple thing (KISS principle), although I suppose that the support for several languages also would be useful. Before the doubt, I would put both! : -)
        Hide
        Norman Maurer added a comment -

        Again here is a working link to the BSF zip:
        http://web.archiveorange.com/archive/v/n8MeWN3bwThwC1GAZtU3

        Show
        Norman Maurer added a comment - Again here is a working link to the BSF zip: http://web.archiveorange.com/archive/v/n8MeWN3bwThwC1GAZtU3

          People

          • Assignee:
            Norman Maurer
            Reporter:
            Guillermo Grandes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development