Whoops. Bad form, should have checked the code before sending.
I'm afraid your patch is in 0.80 - but isn't working:
Find attached a partial that triggers the error.
bash$ clamdscan -V
ClamAV 0.80/533/Sun Oct 17 14:09:44 2004
bash$ clamdscan Test_Emails//partial-1.eml
partial-1.eml: Bad format or broken data ERROR
partial-1.eml: OK
----------- SCAN SUMMARY -----------
Infected files: 0
Time: 0.002 sec (0 m 0 s)
bash$ echo $?
2
Jason
On Mon, Oct 18, 2004 at 10:21:03AM +1300, Jason Haar wrote:
> On Fri, Oct 15, 2004 at 02:06:54AM +0200, Tomasz Kojm wrote:
> > On Fri, 15 Oct 2004 12:03:51 +1300
> > Jason Haar <[EMAIL PROTECTED]> wrote:
> >
> > > I've got a message being unable to be delivered via Qmail-Scanner
> > > because clamdscan is reporting "Bad format or broken data ERROR" when
> > > processing the message.
> >
> > Patch attached (also applied in CVS).
>
> I've just downloaded the official 0.80 - and this problem is still present.
> Did your patch miss the deadline?
>
> I am due to release the next version of Qmail-Scanner, and I want
> clamav-0.80 to be "officially" supported. But this bug is triggering every
> day on our network - and we're not even a big site, so I'm relutant to do so.
>
> If 0.80 doesn't have this patch, then would it be appropriate for a content
> filter like Qmail-Scanner to treat exit status 2 errors which contain "Bad
> format or broken data ERROR" as being equivalent to exit status 0? (like
> clamscan does already). If so, I'll put that in until the exit status issue
> clears up in ClamAV 0.81 or whatever...
>
> [I'm just concerned there are some other error conditions (e.g. out of
> memory or permission problems) that could cause clamdscan to also exit
> status 2 - and such a hack would end up passing on infected emails when it
> shouldn't]
>
> Thanks!
>
> --
> Cheers
>
> Jason Haar
> Information Security Manager, Trimble Navigation Ltd.
> Phone: +64 3 9635 377 Fax: +64 3 9635 417
> PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
> _______________________________________________
> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
--
Cheers
Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
From: me
To: you
Content-type: message/partial; id="[EMAIL PROTECTED]";
number=1; total=3
MIME-Version: 1.0
Subject: example of a partial message
Content-type: text/plain
MIME-Version: 1.0
helllo
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users