Fix exception in virus scan.
authorFrederic Jolliton <frederic@jolliton.com>
Thu, 18 Nov 2004 05:19:28 +0000 (05:19 +0000)
committerFrederic Jolliton <frederic@jolliton.com>
Thu, 18 Nov 2004 05:19:28 +0000 (05:19 +0000)
commit04a398e23aa7cfff6970b8ce02565615578f6840
tree7af12fe445b3c637ef30b39748f48450028115cd
parent4ccb619856944ff1f20c3d9fad838e7362e4db63
Fix exception in virus scan.

* IMPORTANT: We catch exception derived from Exception, but antivirusScan was
  throwing a string exception. That caused global try/catch to miss that, and
  let sendmail believe than the mail was correctly delivered.

* confparser.readConfiguration now return None if rule file doesn't exist.

* Removed log for absence of rule (either because the user file doesn't exist,
  or because no rule are defined inside it.)
git-archimport-id: frederic@jolliton.com--2004-private/mail-filter--main--0.1.2--patch-3
confparser.py
mailfilter.py