Steve Brewin wrote: > 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.
OK, I've submitted a HasAttributeNameWithValue matcher as a patch - http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] .org&msgNo=9877. You can do... <mailet match="HasMailAttributeWithValue=org.apache.james.fetchmail.taskName, myFetchTask" class="AddFooter"> <text>This message was injected by the fetchmail task myFetchTask</text> </mailet> If this isn't simple enough it could be subclassed and the attribute name (org.apache.james.fetchmail.taskName) hard-coded. Personally I think thats unnecessary and would worry about someone who could not cope with the above messing with mailets in the first place! -- Steve --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
