Hi,
for more complex conditional handling you can either implement matcher which
do what ever you want or you can deploy the full strength of the processor
concept (or maybe there is even some other way).
You can define as many processors as you want. for example you can pass the
mail to a processor if it matches your first condition and this processor
calls some mailet if it matches some other condition. Then of course you
will want to join the two branches of processing in one processor common for
both branches. But always remember that matching is per recipient, i.e. if
this mail has two recipients and the first condition deals with the
recipient the mail will be processed on both branches with one recipient
each.
I don't know if I am describing the best way, but as long you get some
better answer this will work. And in this way you can set up any logic
operation.
<processor name="a">
<mailet match="[EMAIL PROTECTED]"
class="ToProcessor">
<processor> b </processor>
</mailet>
<mailet match="All" class="ToProcessor">
<processor> c </processor>
</mailet>
</processor>
<processor name="b">
<mailet match="SubjectIs=special offer" class="Foward">
<forwardto>[EMAIL PROTECTED]</forwardto>
</mailet>
<mailet match="All" class="ToProcessor">
<processor> c </processor>
</mailet>
</processor>
<processor name="c">
<!-- some processing for mails not for [EMAIL PROTECTED] or with a
subject different from 'special offer' -->
</processor>
> -----Urspr�ngliche Nachricht-----
> Von: Charlie Woloszynski [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 16. Oktober 2001 04:36
> An: [EMAIL PROTECTED]
> Betreff: Combining Matches in JAMES
>
>
> I am new to using JAMES and I have a question.
>
> We need to pick a mailet on the combination of the subject containing
> something and the sender beginning with something. The config
> documentation seems to imply that we can use
>
>
> SubjectIs=john.doe & SubjectContains=xyz
>
> Likewise we want to use not matches (e.g.,
> !SubjectIs=john.doe)
>
> I cannot get this to work (getting an error about the Match). When I
> looked at the MatchLoader.getMatcher code, it looks like the code only
> handles a single Matcher.
>
> Does anyone know if the system supports more than one matcher ? Does
> this exist in a newer version?
>
> Any help is appreciated,
>
> Thanks
>
> Charlie
>
>
>
>
> ---------------------------------------------------------------------
> 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]