jefetech ha scritto:
> Thanks. That's what I thought. I've been having trouble finding an example
> piece of java for a mailet though. Can I just write something simple like
> this.
>
> package com.mypackage;
> public class processEmail extends GenericMatcher
> {
> //java logic to call struts url
> }
>
> How does this <match="All" mailet="YourMailet"/> then know how to call that
> java class? Would it be like this:
>
> <match="All" mailet="FeedToStruts" class="com.mypackage.processEmail"/> and
> is that the only mailet tag and config that needs to be done in james?
>
> Thanks for your time.
The string you put in mailet must be a class name. That class is
searched in the mailet packages (there is a configuration for mailet
packages).
IIRC you can also write fully qualified class names in the mailet
attribute if you don't want to use the JAMES Server "search".
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]