You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Vincenzo Gianferrari Pini <vi...@praxis.it> on 2005/04/09 22:41:36 UTC
Re: ClamAV Exception saving changes (header)
John,
It is not a problem.
What happens is that there exist some "malformed" messages, typically spam, that cause this ParseException inside
javax.mail.internet.MimeBodyPart.updateHeaders.
It happens sometimes in my system too, and they are "always" spam.
In any case, ClamAVScan at that point has already done its job, and if a virus has been found the setAttribute has been
already issued and hence the infected message will be intercepted afterwards by a HasMailAttributeWithValue matcher
call. If this exception is thrown, it is simply ignored and the header is not written, which is not so important.
Vincenzo
P.S. I'm posting this message to the server-user list too as it may be of interest for others.
John Hornsby wrote:
> Ciao Vincenzo,
>
> I installed your ClamAV mailet as in your Wiki notes but I get quite a few
> of these exceptions:
>
> 09/04/05 08:40:46 INFO James.Mailet: ClamAVScan: Exception caught while
> saving changes (header) to the MimeMessage. Ignoring ...
> javax.mail.internet.ParseException
> at javax.mail.internet.ParameterList.<init>(ParameterList.java:81)
> at javax.mail.internet.ContentType.<init>(ContentType.java:82)
> at
> javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1051)
> at
> javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
> at
> javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
> at
> org.apache.james.core.MimeMessageWrapper.saveChanges(MimeMessageWrapper.java
> :988)
> at
> org.apache.james.transport.mailets.ClamAVScan.saveChanges(ClamAVScan.java:86
> 1)
> at
> org.apache.james.transport.mailets.ClamAVScan.service(ClamAVScan.java:660)
> at
> org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:407)
> at
> org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:
> 451)
> at
> org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:360)
> at java.lang.Thread.run(Thread.java:536)
>
>
> Should I be concerned?
>
> I'm running James 2.2 with clamd 0.83 on Windows XP.
>
> Thanks,
>
> John.Hornsby@dsdata.co.uk
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org