I had to make the change attached to fetchmail so that it did not run the command specified by on-error-command when no update occurred. This is because the download manager code returns 1 for no update (and 0 for a successful update).

regards
David Woakes
+44-131 452 8160
+44-7966 444 615
*** clamav-0.60/freshclam/freshclam.c   2003-06-20 20:29:40.000000000 +0100
--- clamav-0.60-david/freshclam/freshclam.c     2003-08-20 09:54:39.000000000 +0100
***************
*** 129,133 ****
  
            if(optl(opt, "on-error-execute"))
!               if(ret)
                    system(getargl(opt, "on-error-execute"));
  
--- 129,133 ----
  
            if(optl(opt, "on-error-execute"))
!               if(ret > 1)
                    system(getargl(opt, "on-error-execute"));
  
***************
*** 140,144 ****
  
      if(optl(opt, "on-error-execute"))
!       if(ret)
            system(getargl(opt, "on-error-execute"));
  
--- 140,144 ----
  
      if(optl(opt, "on-error-execute"))
!       if(ret > 1)
            system(getargl(opt, "on-error-execute"));
  

Reply via email to