Noel J. Bergman wrote:
> > <fetchmail enabled="true>
> >      <fetch name="fetchfromexternal">
>
> >      <mailet match="HasMailAttribute=fetchfromexternal"
>
>
> > 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.

Not really. I purposedly set up the Mail Attributes in fetchmail to use
generic Mail Attribute matchers. For almost all purposes HasMailAttribute
will do the job.

In this case, most often you want all fetched mail to go through the same
mailet and being able to match on the name of the Mail Attribute means you
only have to code the matcher/mailet pair once. With FetchPOP's
X-fetched-from header you would have to code a matcher/mailet pair for every
fetch task, defining the name of
a particular fetch task in each one.

If matching a particular fetch task is the desired behaviour, what is needed
is a MailAttribute matcher that matches on the attribute name AND value.
Such a matcher would be generically applicable to all Mail Attributes, not
just fetchmail's.

I thought someone had mentioned writing this, so I haven't. I do have a
ScriptedMatcher that does the job, but that is another story!

-- Steve


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

Reply via email to