[Mimedefang] PING -> PONG support for mimedefang socket
    Martin Blapp 
    mb at imp.ch
       
    Wed Apr 13 10:26:00 EDT 2005
    
    
  
Hi David,
What about this little nice patch :-) ?
@@ -4987,6 +4999,10 @@
         # Change to spool dir -- ignore error
         chdir($Features{'Path:SPOOLDIR'});
+       if ($_ =~ /^ping$/i) {
+               print_and_flush("PONG\n");
+               next;
+       }
         if ($_ =~ /^scan (.*)$/) {
             $workdir = $1;
             do_scan($workdir);
Martin
Martin Blapp, <mb at imp.ch> <mbr at FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l mbr at freebsd.org>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------
    
    
More information about the MIMEDefang
mailing list