Hi, Now I did find a hint that there are boolean operators possible in matches as well: http://jakarta.apache.org/james/configuration_v1_2.html#Matches
But I can't find the information about their syntax. Where did you find it? Looking in the source in CVS I couldn't find some implementation as well. Till today I didn't know that the james developer were promising boolean operators! Marcus > -----Urspr�ngliche Nachricht----- > Von: Charlie Woloszynski [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 16. Oktober 2001 17:00 > An: [EMAIL PROTECTED] > Betreff: Re: Combining Matches in JAMES > > > Hi: > > Thanks for the feedback. The notion you suggest is > appealing. I will try it. > > Can we get the documentation changed to reflect that the ! > and & are not > supported in Matching? Perhaps the FAQ can be updated to reflect your > suggestion. > > > Charlie > > "Labib Iskander, Marcus" wrote: > > > 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] > > > --------------------------------------------------------------------- > 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]
