Noel J. Bergman wrote: > > > To match mail from a particular fetch task is a little > harder at the > > > moment > > > > We need a modified version of the FetchedFrom matcher. The > > > current one is tied to FetchPOP's X-fetched-from header. > > > I purposedly set up the Mail Attributes in fetchmail to use > > generic Mail Attribute matchers. > > Yes, we could have a more generic matcher that checks an > attribute for a > value. And we should. But something as common as wanting to match a > particular fetched task ought to be dead simple.
Yes it should be dead simple. HasAttributeNameWithValue="attributeName, attributeValue" would work for Strings which is all that the fetchmail attributes require. To deal with arbitary types we need a more sophisticated way of expressing matcher parameters. This has been discussed for v3, but I do not believe any conclusion has been reached. > Although it may be the case that Fetchmail no longer requires > some of the > common uses that required matching with FetchPOP. Yep. The most common uses are now integrated into fetchmail. > > I do have a ScriptedMatcher that does the job, but that is > another story! > > Has it changed since late June? I see a copy in my queue, > although I'm not > sure which (or both) branches it is for, or what else needs > to be added to > James to support it. It hasn't changed and works fine for me. I use it to quickly prototype ideas, which I then transform into Java code (at least the saner ideas). It was for HEAD only but is easily modded for v2.2. I haven't bothered to keep it synchronized. It requires no changes in James to support it. It does need some docs. to explain how to set it up. The matcher syntax is obtuse due to the matcher syntax limitations alluded to above. Personally, I think we should wait for this to be resolved in v3 and not put it in to v2.2. I may be biased here as I don't want to write the docs. twice! People probably don't want to write their ScriptedMatchers twice either. -- Steve --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
