Hi there, for this purpose you would typically create a custom "Mailet" which extends "GenericMailet" (not GenericMatcher as you wrote). In this Mailet you would put all the needed logic.
Now about the difference of Matcher and Mailet... The Matcher is used to see which "recipients" should the Mailet be used on. This allows todo some nice routing stuff. Bye, Norman 2012/1/10 Garvice Eakins <[email protected]> > Hi, > > Trying to figure out the Mailet/Matcher functionality of James. > > I created a basic mailet that inherited from GenericMatcher. > It takes information from the Mail message, makes a few Rest webservice > calls checking the Sender Address against the recipient address, And stores > some of the data from the email in a MySql DB through the Rest Service. > > Based on this I don't think I need a Mailet do I..? But I don't really > understand how to register my Matcher with James, and from what I see it > looks like I need both somehow? > > I'm using James 3.2.3 >
