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 Steve Brewin <sb...@synsys.com> on 2003/06/24 22:30:22 UTC

[PATCH] Scripted Matcher & Mailet Classes

Hi,

Attached is a zipfile - ScriptedPatches.zip - containing patches for two new
James classes...

org.apache.james.transport.matchers.ScriptedMatcher
org.apache.james.transport.mailets.ScriptedMailet

...that give James the ability for Matchers and Mailets to be written in any
scripting language supported by BSF - Bean Scripting Framework, such as
JavaScript, Jython, JACL and many more.

These classes have been tested succesfully with James 2 and 3 builds and
work with either without change.

The Javadoc for each class explains how to use them.

Known Limitations:

1) The final IBM release of BSF, v2.2 is used as the Apache 2.3 version is
not yet stable.
2) NetRexx doesn't work, apparently due to a class loader issue which is
still under investigation. Not considered a sufficiently serious limitation
to delay submission.
3) Yet to be discovered "features".

Any questions, just ask.

-- Steve

RE: [PATCH] Scripted Matcher & Mailet Classes - Take 2

Posted by Vincenzo Gianferrari Pini <vi...@praxis.it>.
Noel,

> For future reference:
> 
>   - please just submit new files intact.
>   - please do a build just prior to sending the file.
>     The build system will remove tabs and ensure UNIX
>     line termination.
>   - we don't use @author tags, so we'll remove those
>     when posting, and we will use @version $Id$.

Just FYI, after our discussions I started using the following format (@since only when possible):

 * @version CVS $Revision$ $Date$
 * @since <james version>

that is more essential, but obviously I don't have any special preference. But we should have a common way of doing things. Let me know.

Vincenzo 


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


RE: [PATCH] Scripted Matcher & Mailet Classes - Take 2

Posted by "Noel J. Bergman" <no...@devtech.com>.
Steve,

I'll try to get to this over the weekend, and clear up a backlog of patches.

For future reference:

  - please just submit new files intact.
  - please do a build just prior to sending the file.
    The build system will remove tabs and ensure UNIX
    line termination.
  - we don't use @author tags, so we'll remove those
    when posting, and we will use @version $Id$.

Nothing for you to do now, but if you do rememeber in the future, it will
just help ease the workload, especially when we get a bunch of patches, as
we have from you, Soren, and Mark.

	--- Noel


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


[PATCH] Scripted Matcher & Mailet Classes - Take 2

Posted by Steve Brewin <sb...@synsys.com>.
Attached is ScriptedPatches.zip containing the correct versions of the
patches for two new James classes...

org.apache.james.transport.matchers.ScriptedMatcher
org.apache.james.transport.mailets.ScriptedMailet

Read the appended messages for details.

Again, any questions, just ask.

-- Steve



> -----Original Message-----
> From: Steve Brewin [mailto:sbrewin@synsys.com]
> Sent: 24 June 2003 21:54
> To: 'James Developers List'
> Subject: RE: [PATCH] Scripted Matcher & Mailet Classes
>
>
> Argh! Submitted wrong version. A known limitation is that
> beans will not
> undeclare cleanly.
>
> Sorry, I will resubmit ASAP.
>
> -- Steve
>
> > -----Original Message-----
> > From: Steve Brewin [mailto:sbrewin@synsys.com]
> > Sent: 24 June 2003 21:30
> > To: James Developers List (E-mail)
> > Subject: [PATCH] Scripted Matcher & Mailet Classes
> >
> >
> > Hi,
> >
> > Attached is a zipfile - ScriptedPatches.zip - containing
> > patches for two new
> > James classes...
> >
> > org.apache.james.transport.matchers.ScriptedMatcher
> > org.apache.james.transport.mailets.ScriptedMailet
> >
> > ...that give James the ability for Matchers and Mailets to be
> > written in any
> > scripting language supported by BSF - Bean Scripting
> > Framework, such as
> > JavaScript, Jython, JACL and many more.
> >
> > These classes have been tested succesfully with James 2 and 3
> > builds and
> > work with either without change.
> >
> > The Javadoc for each class explains how to use them.
> >
> > Known Limitations:
> >
> > 1) The final IBM release of BSF, v2.2 is used as the Apache
> > 2.3 version is
> > not yet stable.
> > 2) NetRexx doesn't work, apparently due to a class loader
> > issue which is
> > still under investigation. Not considered a sufficiently
> > serious limitation
> > to delay submission.
> > 3) Yet to be discovered "features".
> >
> > Any questions, just ask.
> >
> > -- Steve
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
>

RE: [PATCH] Scripted Matcher & Mailet Classes

Posted by Steve Brewin <sb...@synsys.com>.
Argh! Submitted wrong version. A known limitation is that beans will not
undeclare cleanly.

Sorry, I will resubmit ASAP.

-- Steve

> -----Original Message-----
> From: Steve Brewin [mailto:sbrewin@synsys.com]
> Sent: 24 June 2003 21:30
> To: James Developers List (E-mail)
> Subject: [PATCH] Scripted Matcher & Mailet Classes
>
>
> Hi,
>
> Attached is a zipfile - ScriptedPatches.zip - containing
> patches for two new
> James classes...
>
> org.apache.james.transport.matchers.ScriptedMatcher
> org.apache.james.transport.mailets.ScriptedMailet
>
> ...that give James the ability for Matchers and Mailets to be
> written in any
> scripting language supported by BSF - Bean Scripting
> Framework, such as
> JavaScript, Jython, JACL and many more.
>
> These classes have been tested succesfully with James 2 and 3
> builds and
> work with either without change.
>
> The Javadoc for each class explains how to use them.
>
> Known Limitations:
>
> 1) The final IBM release of BSF, v2.2 is used as the Apache
> 2.3 version is
> not yet stable.
> 2) NetRexx doesn't work, apparently due to a class loader
> issue which is
> still under investigation. Not considered a sufficiently
> serious limitation
> to delay submission.
> 3) Yet to be discovered "features".
>
> Any questions, just ask.
>
> -- Steve
>


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