Re: [Mimedefang] Upgrade to 2.44 questions

2004-07-26 Thread Jonas Eckerman
On Thu, 22 Jul 2004 14:05:31 -0500, Shawn Gendle wrote:

  How do I now provide graphdefang the needed info to chart viruses
  now that entity_contains_virus
  is now called in the mimedefang.pl?

man mimedefang-filter:

--8--
   The  following  global  variables are set by mimedefang.pl
   and are available for use in your filter.   All  of  these
   variables  are  always  available to filter_begin, filter,
   filter_multipart and filter_end.   In  addition,  some  of
   them  are available in filter_relay, filter_sender or fil-
   ter_recipient.  If this is the  case,  it  will  be  noted
   below.
[...]
   $VirusScannerMessages
  Each time a virus-scanning function is called, mes-
  sages  (if  any) from the virus scanner are accumu-
  lated in this variable.  You can  use  it  in  fil-
  ter_end  to formulate a notification (if you wish.)

   $VirusName
  If a virus-scanning function found  a  virus,  this
  variable  will  hold the virus name (if it could be
  determined.)
--8--

-- 
Jonas Eckerman, [EMAIL PROTECTED]
http://www.fsdb.org/


___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] Upgrade to 2.44 questions

2004-07-22 Thread Shawn Gendle
Hi all,
I just upgraded to 2.44 and as per the Changelog went into my 
mimedefang-filter and commented out
the calls to entity_contains_virus and message_contains_virus, 
except for the following call that also
exists in the mimedefang-filter-example:

sub filter_begin ()
   # Scan for viruses if any virus-scanners are installed
   my($code, $category, $action) = message_contains_virus();
   $FoundVirus = ($category eq virus);
Should this line be commented out as well?
Also I have the following code in my mimedefang-filter:
sub filter ()
   # Virus scan
   if ($FoundVirus) {
   my($code, $category, $action);
   $VirusScannerMessages = ;
#   Commented out per changelog during install of 2.44
#   This breaks graphdefang - need to fix
#   ($code, $category, $action) = entity_contains_virus($entity);
   if ($category eq virus) {
   md_graphdefang_log('virus',$VirusName, $RelayAddr);
 
   return action_discard();
   }

How do I now provide graphdefang the needed info to chart viruses now 
that entity_contains_virus
is now called in the mimedefang.pl? Can this be done in mimedefang-filter?

Thanks kindly,
-Shawn
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang