Nigel Horne wrote:

The patch may be OK, but I am warning people to do LOTS of regression
testing before using in the wild and am giving clues about why.

Would this be a better way to handle it (watch for wrapping)?

--- scanners.c.orig     2005-02-05 10:44:40.000000000 -0500
+++ scanners.c  2005-02-25 16:19:15.518625880 -0500
@@ -1325,6 +1325,10 @@
            break;

default:
+#ifdef DEFAULT_SCAN_AS_MAIL
+ if(SCAN_MAIL)
+ ret = cli_scanmail(desc, virname, scanned, root, limits, options, arec, mrec);
+#endif
break;
}


Which (if I am understanding the code correctly) would mean that any file type not otherwise identified would be scanned as if it were a mail message. I've confirmed that this indeed correctly handles the "body-only" MIME messages that qpsmtpd generates.

If this is acceptable, I will produce a complete patch (including the configure support).

TIA

John

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to