sundeep Gelli wrote:
Hi,

 How can i assign priority to the matchers?I need to implement one matcher and 
if it fails i need to execute the other.Will the matchers execute in the order 
in which they appear?

James execute matchers inside a processor in the same order you write them.
When a matcher matches the message then the associated mailet is executed. The mailet can stop the message or let it being processed from the following matcher. The mailet decide this by setting the "state" field of the Mail. Use Mail.GHOST to stop the message, while "processorname" to move the messsage to another processor.

Many mailets support the <passThrough> option to alter the default behaviour. Using <passThrough>true</passThrough> the mail will be processed by the following matchers.

In my config.xml,if one of my matchers return success,i am assigning it to null 
i.e  dont want to execute the mail anymore.But all the other matchers were also 
checked.

Assigning an input parameter to null in Java does not put null in the object, this is a Java foundation.

You have to call mail.setState(Mail.GHOST) if you want to "eat" the message.

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to