You don't need to add your mailet and matcher to the JAMES.jar file, but
you do need to do a couple of small edits to the JAMES.conf.xml file.
Do a search in this file for the tag <mailetpackages> and in here add a
new mailetpackage something like
<mailetpackage>com.yourcompany.mailets.</mailetpackage>
and same thing in the <matcherpackages> tag which is just below.
Then you just need to add the matching rule, probably in the tag
<processor name="transport"> or possibly in <processor name="root"> if
it's doing something a bit higher up the chain (if you look through this
code you should get an idea of how it works). Anyway, within one of these
tags you need to add your own <mailet> tag something like
<mailet match="MyMatcher" mailet="MyMailet">
<paramName1>paramValue2</paramName1>
<paramName2>paramValue2</paramName2>
<notice>some logging if you like</notice>
</mailet>
Then that should be it, as long as the class root for your compiled class
is in the classpath when james is started up.
HTH
Steve
http://www.runtime-collective.com
t: 01273 234290
f: 01273 234291
m: 0789 984 1684
On Wed, 27 Jun 2001, Enzo Maggi wrote:
>
> Hi,
>
> I'm working in in the integration of james into an application server
> (under developement - http://www.koinettivity.org) that uses the mail as
> one of the possible front-ends.
>
> I'm just adding a matcher and a mailet in the james system, that
> intercept special addresses mapped to koinettivity applications and that
> react accordingly.
> As far as I can see, I cannot do that without rebuilding the JAMES.jar
> file with the new matcher & mailet *and* touching the JAMES.conf.xml
> file.
>
> I was not able to find a way to put somewhere my jar file containing
> MyMatcher.class, MyMailet.class and then add a line in the
> JAMES.conf.xml to change the flow accordingly. As far as I can see, a
> new jar should correspond to a new .conf.xml..
>
> Sorry if the subject have already been discussed; I've humbly spent the
> last week browsing the code and reading the doc :-)
>
> Thanks in advance for any help,
>
> Enzo
>
>
> -- Enzo Maggi - Mandrakesoft
> http://www.mandrakesoft.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]