diff -r -p scan4virus-0.1/README scan4virus-0.11/README
*** scan4virus-0.1/README	Tue Nov 23 16:56:01 1999
--- scan4virus-0.11/README	Tue Nov 23 20:49:47 1999
***************
*** 1,4 ****
! This is the README for scan4virus v0.1
  -------------------------------------------------- 
  
  The scan4virus package can be inserted into a (currently) patched
--- 1,4 ----
! This is the README for scan4virus v0.11
  -------------------------------------------------- 
  
  The scan4virus package can be inserted into a (currently) patched
*************** and download/keep up-to-date virus DAT f
*** 61,72 ****
  
  * cp antivirus-qmail-queue.pl /var/qmail/bin/antivirus-qmail-queue.pl
  * chown qmailq:qmail /var/qmail/bin/antivirus-qmail-queue.pl
  * mkdir -p /var/spool/qmailscan/failed/new /var/spool/qmailscan/viruses/new \
  	/var/spool/qmailscan/working/new 
  * chown -R qmailq:qmail /var/spool/qmailscan/
  
  
! then alter qmail startup to the following:
  
  echo -n "qmail-smtpd, "
  QMAILQUEUE="/var/qmail/bin/antivirus-qmail-queue" export QMAILQUEUE
--- 61,76 ----
  
  * cp antivirus-qmail-queue.pl /var/qmail/bin/antivirus-qmail-queue.pl
  * chown qmailq:qmail /var/qmail/bin/antivirus-qmail-queue.pl
+ * chmod 4755  /var/qmail/bin/antivirus-qmail-queue.pl (i.e same perms as qmail-queue)
  * mkdir -p /var/spool/qmailscan/failed/new /var/spool/qmailscan/viruses/new \
  	/var/spool/qmailscan/working/new 
  * chown -R qmailq:qmail /var/spool/qmailscan/
  
+ You can then test run /var/qmail/bin/antivirus-qmail-queue.pl from the
+ command line - it should just sit there waiting for input (just Ctr-C
+ out). Any errors need to be dealt with before going on.
  
! Then alter qmail startup to the following:
  
  echo -n "qmail-smtpd, "
  QMAILQUEUE="/var/qmail/bin/antivirus-qmail-queue" export QMAILQUEUE
*************** qmail-queue - everything else carries on
*** 80,85 ****
--- 84,94 ----
  
  BE VERY CAREFUL ABOUT THAT - YOU DON'T WANT AN INFINITE LOOP FORMING!!!
  
+ 
+ If "$DEBUG=1" (the default), then every transaction will be logged to 
+ /var/spool/qmailscan/qmail-queue.log - so you'll see how it goes. Any errors should
+ be recorded via qmail calling syslog - just look for entries containing the string 
+ "X-Scan4Virus".
  
  To ensure you keep an eye on Emails that fail due to the STDIN/OUT
  problem, just run something like the following from crontab once a
diff -r -p scan4virus-0.1/antivirus-qmail-queue.pl scan4virus-0.11/antivirus-qmail-queue.pl
*** scan4virus-0.1/antivirus-qmail-queue.pl	Tue Nov 23 17:00:39 1999
--- scan4virus-0.11/antivirus-qmail-queue.pl	Tue Nov 23 20:45:52 1999
***************
*** 1,7 ****
  #!/usr/bin/perl -T
  #
  # File: antivirus-qmail-queue.pl
! # Version: 0.1
  #
  # Author: Jason L. Haar <jhaar@trimble.co.nz>
  # 
--- 1,7 ----
  #!/usr/bin/perl -T
  #
  # File: antivirus-qmail-queue.pl
! # Version: 0.11
  #
  # Author: Jason L. Haar <jhaar@trimble.co.nz>
  # 
***************
*** 63,69 ****
  ##
  #####################################################################
  
! $VERSION="0.1";
  
  #Mail header to add to each scanned message to report stuff in...
  $V_HEADER="X-Scan4Virus";
--- 63,69 ----
  ##
  #####################################################################
  
! $VERSION="0.11";
  
  #Mail header to add to each scanned message to report stuff in...
  $V_HEADER="X-Scan4Virus";
*************** delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}
*** 133,139 ****
  $file_id = "$hostname" . time . $$;
  
  
! #Want debugging? Enable this and read /tmp/qmail-queue.log
  $DEBUG=1;
  
  if ($DEBUG ) {
--- 133,139 ----
  $file_id = "$hostname" . time . $$;
  
  
! #Want debugging? Enable this and read $tempdir/qmail-queue.log
  $DEBUG=1;
  
  if ($DEBUG ) {
