james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hontvári József <hontva...@solware.com>
Subject DSNBounce and non-RemoteDelivery errors
Date Sun, 23 Nov 2008 15:37:07 GMT
In James 2.3.2 but likely in trunk too the DSNBunce mailet expects a 
MessagingException in the mail attribute named "delivery-error". If this 
attribute is not set DSNBounce throws a NPE. This attribute is only set 
in RemoteDelivery and the comment of the "bounces" processor in the 
default config file also suggests that DSNBounce only works for 
RemoteDelivery errors.

I would like to use DSNBounce for matcher exceptions e.g. <mailet 
match="AttachmentFileNameIs=... onMatchException="bounces">.
Do you have a recommendation how to implement this? E.g. modify 
DSNBounce to look for another attribute. Or modify the matcher exception 
handler to set the "delivery-error" attribute (in the handleException 
method of LinearProcessor). Btw. the latter function seems to contain 
unused code which determines the root of the exception chain.




---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message