Ya, I tried that too.

Well, I have upgraded to RC1.  
We'll see how it goes.

I also had the 
<!-- Is the recipient is for a local account, deliver it locally -->  
<mailet match="RecipientIsLocal" class="LocalDelivery"/>

before 

<mailet
  match="HasMailAttribute=org.apache.james.fetchmail.taskName"
  class="AddFooter">
  <text>From Adelphia.</text>
</mailet>

Perhaps by moving the HasMailAttribute/AddFooter matcher/mailet before
RecipientIsLocal/LocalDelivery it will work now.



-----Original Message-----
From: Steve Brewin [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 7:48 AM
To: 'James Users List'
Subject: RE: how to capture the mail coming in

Michael Finney wrote:

> How do I capture/work on the mail coming in?  What am I doing
> wrong?

You are matching on the wrong attribute name. To quote from the
documentation...

"Use the HasMailAttribute matcher to match the attribute named
org.apache.james.fetchmail.taskName to detect all mail injected by
fetchmail. To detect mail injected by a specific fetch task, use one of the
HasMailAttributeWithValue matchers to match on the attribute name and the
attribute value. The attribute value is the name of the fetch task that
injected the mail."

-- Steve


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



Before has mail attribute.
After has mail attribute.


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

Reply via email to