Attached a minimal patch for clamav plugin which should take care of this. Tested and working on Oneiric, the error message is gone and the mail gets scanned and flagged correctly.
Fri Aug 19 20:28:19 2011 utest-oos32[5831]: clamscan results: Eicar-Test-Signature
Fri Aug 19 20:28:19 2011 utest-oos32[5831]: Virus(es) found: Eicar-Test-Signature
Fri Aug 19 20:28:19 2011 utest-oos32[5831]: 552 Virus Found: Eicar-Test-Signature
Fri Aug 19 20:28:19 2011 utest-oos32[5831]: dispatching QUIT
I did attach the patch but I think this might/should be resolved in some other way. Looking at the clamav plugin code there is a back_compat flag which adds some deprecated options when using clamav < 0.80. Maybe something like this should be used here also.
(Note: nobody should use any older version of clamav and anything less than clamav 0.97 should be thrown out)
Attached a minimal patch for clamav plugin which should take care of this. Tested and working on Oneiric, the error message is gone and the mail gets scanned and flagged correctly.
Fri Aug 19 20:28:19 2011 utest-oos32[5831]: clamscan results: Eicar-Test- Signature Signature Signature
Fri Aug 19 20:28:19 2011 utest-oos32[5831]: Virus(es) found: Eicar-Test-
Fri Aug 19 20:28:19 2011 utest-oos32[5831]: 552 Virus Found: Eicar-Test-
Fri Aug 19 20:28:19 2011 utest-oos32[5831]: dispatching QUIT
I did attach the patch but I think this might/should be resolved in some other way. Looking at the clamav plugin code there is a back_compat flag which adds some deprecated options when using clamav < 0.80. Maybe something like this should be used here also.
(Note: nobody should use any older version of clamav and anything less than clamav 0.97 should be thrown out)