Hi, 

not that anyone is usually using the commandline scanner.. anyway. BTW, there 
is a problem with most virus scanners (I've verified this problem with Sophos 
and ClamAV), that they don't always detect the raw message as given in 
Work/ENTIRE_MESSAGE when there is not a mbox marker ("From foo bar") in the 
first line. 

The code to fix this is roughly like:

    open(I, "<INPUTMSG");
    open(O, ">Work/COMPLETE_MSG");
    print O "From foo  Sun Jan 1 01:01:01 2004\n"; 
    print O <I>;
    close(I);close(O);


Dirk
--- mimedefang.pl.orig	2004-03-08 19:28:12.753339140 +0100
+++ mimedefang.pl	2004-03-08 20:44:58.681557627 +0100
@@ -3152,7 +3152,7 @@
     }
 
     # Run antivir
-    my($code, $category, $action) = run_virus_scanner($Features{'Virus:SOPHOS'} . " -f -all -archive -ss $path 2>&1", "(>>> Virus)|(Password)|(Could not check)");
+    my($code, $category, $action) = run_virus_scanner($Features{'Virus:SOPHOS'} . " -f -mime -all -archive -ss $path 2>&1", "(>>> Virus)|(Password)|(Could not check)");
     if ($action ne 'proceed') {
 	return (wantarray ? ($code, $category, $action) : $code);
     }
@@ -3176,7 +3176,7 @@
     }
 
     # Run antivir
-    my($code, $category, $action) = run_virus_scanner($Features{'Virus:SOPHOS'} . " -f -all -archive -ss ./Work 2>&1", "(>>> Virus)|(Password)|(Could not check)");
+    my($code, $category, $action) = run_virus_scanner($Features{'Virus:SOPHOS'} . " -f -mime -all -archive -ss ./Work 2>&1", "(>>> Virus)|(Password)|(Could not check)");
     if ($action ne 'proceed') {
 	return (wantarray ? ($code, $category, $action) : $code);
     }
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to