Stefano Bagnara wrote:
Marcel Ruff wrote:
Hi,

i need to check mails which are forwarded by james to the next MTA.
If they are expired i want to delete them.

How can i do this with james?
Every of our emails has a

Expires: Thu, 15 Dec 2005 21:45:01 +0100 (CET)



header (new RFC 822 'Expires:' header and http://www.faqs.org/rfcs/rfc2156.html).

If the follow-up MTA is down for say one day all mails
are hold by james in its outgoing queue.
As most of our mails expire after one minute there
may be say 20000 mails which are expired during a day.
I don't want to forward them when the folloup MTA comes
up again but just silently erase them.

I think the mailet interface is invoked when the mail
arrives to james (and is not expired at this point)
but not when james tries to forward them - true?

thanks for some insight,
Marcel



What do you mean by "expired"?
James already bounce messages (and remove them from the outgoing spool) when it reach the "<maxRetries>" limit.

If you want to filter messages before passing them to the remoteDelivery then you can simply add a matcher/mailet before the remotedelivery in the same processor.

If you want to process bounces coming from the remotedelivery then you simply add a <bounceprocessor> configuration to the remotedelivery and create a dedicated processor.

Stefano


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




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

Reply via email to