Per Jessen wrote: > Tomasz Kojm wrote: > >>> So, a situation where the new database requires flevel 5, but the software >>> only supports >>> flevel 4, would be impossible unless a software-level warning had already >>> been issued? >>> (according to the current >>> code-sequence). Am I right or am I just babbling? >> >> freshclam can be called with --no-dns or even compiled without DNS >> support that's why OnOutdatedExecute must support flevel warning as the >> last resort. > > Ah, yes. Thanks. I'll be back with an updated patch in a while.
OK, here's a first draft - http://jessen.ch/files/onoutdatedexecute.patch This patch is against the most recent CVS snapshot. Purpose: To allow a customised notification when freshclam determines that the software or the functionality levels are outdated. Introduces config file and command line options "OnOutdatedExecute" and "on-outdated-execute". The argument format is the same as that of OnErrorExcute. In downloadmanager(), I set two flags - outdated_sw (when dns is supported) and outdated_fl (checked when main.cvd and daily.cvd are downloaded). At the end of downloadmanager(), I check for outdated_sw and issue the warning when it is set, if not, I check for outdated_fl instead and issue a warning etc. when it is set. Any and all comments much appreciated. /Per Jessen, Zürich -- http://www.spamchek.com/freetrial - managed anti-spam and anti-virus solution. Sign up for your free 30-day trial now! _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html