F-Prot successfully updated.

Julian Field mailscanner at ecs.soton.ac.uk
Thu Feb 6 14:46:15 GMT 2003


Good idea. Changed for the next release.
I used a slightly more concise syntax than you but the effect is the same.

At 13:19 06/02/2003, you wrote:
>I get this message in my log every hour. I didn't believe F-Prot updated
>their files this often so I started f-prot-autoupdate by hand. Even when
>it reports "Nothing to be done." I get "F-Prot successfully updated."
>
>Could the logging be changed to show whether a real update has taken
>place or not?
>
>I tried this patch:
>|~> diff -u /usr/lib/MailScanner/f-prot-autoupdate .
>|--- /usr/lib/MailScanner/f-prot-autoupdate      2003-02-01
>14:50:09.000000000 +0100
>|+++ ./f-prot-autoupdate 2003-02-06 14:18:02.000000000 +0100
>|@@ -219,7 +219,11 @@
>| CleanTempDir();
>| &UnlockFProt();
>| Sys::Syslog::openlog("F-Prot autoupdate", 'pid, nowait', 'mail');
>|-Sys::Syslog::syslog('info', "F-Prot successfully updated.");
>|+if ($updated) {
>|+  Sys::Syslog::syslog('info', "F-Prot successfully updated.");
>|+} else {
>|+  Sys::Syslog::syslog('info', "F-Prot didn't need updating.");
>|+}
>| Sys::Syslog::closelog();
>| exit 0;
>
>(| added to keep long lines long)
>
>--
>Peter Peters                        senior netwerkbeheerder
>Centrum voor InformatieTechnologie, Bibliotheek en Educatie
>Universiteit Twente, Postbus 217,  7500 AE  Enschede
>telefoon: +31 53 489 2301, fax:+31 53 489 2383, http://www.utwente.nl/civ

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support



More information about the MailScanner mailing list