Thank you for the info. Will give that a try.

Correct. i updated the package name.. Only did it because i could not get James to find the class.. and i was in a hurry. Will work on it and change the package back to what it was previously. I added the extra package to my config.xml.. and added the jar to my install. but still received a Class Not Found exception when it tried to load the IsInfected mailet.

Obviously i was doing something wrong.. will fix as soon as i can.

Cj

Vincenzo Gianferrari Pini wrote:

anytime a bounce email is scanned.. i get this exception:
IsInfected: Exception caught
javax.mail.MessagingException: Missing start boundary
at ...MimeMultipart.parse(MimeMultipart.java:297)
at ...MimeMultipart.getCount(MimeMultipart.java:159)
at ...IsInfected.dumpPart(IsInfected.java:442)
...


Seems to me that the IsInfected matcher should be more robust, if it is
throwing exceptions just because the message body isn't in MIME format. But
I haven't seen the code.



Looking at my last 30 days log, I found this exception 22 over about 58,000 messages scanned (with 7600 viruses found). There are sometimes other exceptions thrown, due to the fact that there are sometimes some "malformed" messages flowing (especially the spam ones) that do not follow the rules. I'll have a look at it.

I suggest anyhow to have a two level "defense": invoking the IsInfected matcher with onMatchException="noMatch" set followed by an "AttachmentFileNameIs=*.exe *.com ...." filter.



Which reminds me. We're going to have to remind people that the
org.apache.* name space belongs to the ASF. No one should be using that
name space in their own code.



The package name I used writing the IsInfected matcher is "it.praxis.james.matchers.*", and everything is in a totally separate and signed jar ("it.praxis.james.jar"). Corey must have inserted my source in his org/apache/james/transport/matchers downloaded from CVS, changed the package declaration and recompiled. THIS IS NOT MY CODE.


Vincenzo


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





-- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984


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



Reply via email to