> Another subject: Personally I do want to know if an unexpected exception > happens in the mail server. I always feel uncomfortable if unexpected > exceptions are simply swallowed. In the specific case, the > AttachmentFileNameIs mailet and a malformed email, swallowing > exceptions and > delivering malformed messages to the original recipient contradicts its > purpose. As the experience shows, malformed letters are exactly those > letters that I would like to filter out (virus).
A few seconds before getting your message I sent one with a possible solution to your observation, leaving to the administrator the choice. In the specific case, in the configuration I wrote using AttachmentFileNameIs, and with a careful look at the logs, the messages throwing exceptions where: a) 3 messages sent by a legitimate tool in my company that notify some administrators of problems in servers, failed backups etc. They had caused a "java.io.IOException: Unknown encoding: xxx" because the encoding declared was not a existing one, like 7-bit, 8-bit, 8bits instead of 7bit and 8bit. They were lost and shouldn't. The error was in the tool used, but it is an outside product. Tell my colleagues to fix the product they had bought because james blocks it! b) 2 spams, but they could have been good messages, and in my system the anti spam bayesian analyser that I use would have perfectly catched them. c) One message containing a virus, but I think that catching viruses based on a message being malformed is not so good. It would have been intercepted later on by the antivirus matcher I use (if the signature files were up to date, I agree). So perhaps swallowing everything is too much, although I feel it appropriate for this matcher; better would be to give more control to the administrator as said before. Perhaps an additional useful thing would be to have a kind of "MessageIsMalformed" matcher that tries to get exceptions, catches all of them and matches accordingly. The administrator could then behave accordingly. Vincenzo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
