Thanks.
Here is how I got it to load (work)
<processor state="transport" enableJmx="true">
<mailet match="com.spotmouth.james.MailingListMatcher"
class="com.spotmouth.james.MailingListMailet"/>
....
On Tue, Feb 28, 2012 at 5:28 AM, Eric Charles <[email protected]> wrote:
> Hi,
>
> <mailet match="All" class="com.spotmouth.james.MailingListMatcher"/>
> is not good.
>
> The class attribute must be a Mailet, no a Matcher (so read the mailet class
> is applied for mails matching the defined matcher).
>
> Thx,
> Eric
>
> On 28/02/12 01:02, Phillip Rhodes wrote:
>>
>> Hi everyone,
>> I am trying to configure a matcher and a mailet in mailetcontainer.xml
>> and james is throwing an exception with my matcher:
>> Caused by: org.apache.mailet.MailetException: Could not load mailet
>> (com.spotmouth.james.MailingListMatcher);
>> nested exception is:
>> java.lang.ClassCastException:
>> com.spotmouth.james.MailingListMatcher
>> cannot be cast to org.apache.mailet.Mailet
>>
>>
>> I would super-appreciate a simple example of this configuration.
>> Thanks for your help
>> Phillip
>>
>>
>> Here are some other facts.
>> com.spotmouth.james.MailingListMailet extends GenericMailet
>>
>> com.spotmouth.james.MailingListMatcher extends GenericMatcher
>>
>>
>> Matcher:
>> <processors>
>> <processor state="root" enableJmx="true">
>> <mailet match="All" class="com.spotmouth.james.MailingListMatcher"/>
>>
>> <snip!>
>> </processor>
>> </processors>
>>
>>
>> Mailet:
>> <processor state="transport" enableJmx="true">
>> <mailet match="MailingListMatcher"
>> class="com.spotmouth.james.MailingListMailet"/>
>> <snip!>
>> </processor>
>> </processors>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
> --
> eric | http://about.echarles.net | @echarles
>
> ---------------------------------------------------------------------
> 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]