You are correct. The pairing of matcher/mailet works like this: - A matcher must return a true/false answer if it "matches" a mail message. - If it *does* match, then the message is given to the mailet to handle.
For example: <mailet match="HostIsLocal" class="ToProcessor"> If the matcher "HostIsLocal" returns true, then the mailet "ToProcessor" is invoked. The body of the <mailet> contains xml arguments that the specified mailet can see. There are many built-in mailets, so most times you only need to write the matcher and use the existing mailets to direct the mail the way you want. For example, to forward a message to another account based on my own matcher "DesiredMessage", I only write the matcher and use built-in mailet to "Forward": <mailet match="DesiredMessage" class="Forward"> <forwardto>[EMAIL PROTECTED]</forwardto> </mailet> > -----Original Message----- > From: Tremen [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 31, 2005 11:31 AM > To: James Mail List > Subject: Mailet-Matcher execution order > > > Hi all, > > I'd like to know what is the execution order of mailet and > matcher within a pair in a processor. > > e.g. When a mail is routed into a mailet/matcher pair, > matcher deals with mail, then mailet works on matched mails? > Or it happens in a reversed order? (Excuse my poor english) > > Thanks in advance. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]