Hi all, OK, I have completed a rather un-polished proof-of-concept for the bounce handler idea discussed earlier on this list. I have attached everything as a Zip file. To install it you need to add a mailet/matcher entry in config.xml. I have provided an example. The file conf/bounceHandlerConfig.xml needs to be copied to the apps/james/conf/ dir of your James installation. The source files need to be copied into your James source and you need to recompile James.
To test the DB bounce processor you will need to configure a datasource in your James config.xml and then change the config block in conf/bounceHandlerConfig.xml (see comments in config file) If you just want to see the LogBounceProcessor in action you can comment out the DBBounceProcessor. LogBounceProcessor just logs some fun stuff to mailet.log Currently things will only work against James HEAD. The initial idea can be found here http://www.mail-archive.com/[email protected]/msg06017.html It should be possible to do a similar thing using mailets, matchers and processors once a few additional requirements have been met, I have not fully thought about everything yet but I think the relatively complex config might go something like this: <processor name="root"> <mailet match="[EMAIL PROTECTED]" class="ToProcessor"> <processor> bounces </processor> </mailet> </processor> The Mailets here would be required to move the message to the bounce-processor upon match/parsing it. <processor name="bounces"> <mailet match="All" class="DSNBounce"> <processor> bounce-processors </processor> ..... </mailet> <mailet match="All" class="AutoReplys"> <processor> bounce-processors </processor> ..... </mailet> </processor> <processor name="bounce-processors"> <mailet match="All" class="DBBounceProcessor"> ...... </mailet> </processor> I hope this is a start, thoughts and ideas are welcom. Sergei
bh.zip
Description: Zip compressed data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
