Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: [Original edit by JustinMason] tweaking formatting

...

No Format
# Scan for viruses
:0
VIRUS=|clamdscan --mbox --disable-summary --stdout -

:0fw
* VIRUS ?? ^.*: \/.* FOUND
| formail -b -f -t -I "X-Clamav-statusStatus: Yes, $MATCH"

:0Efw
| formail -b -f -t -I "X-Clamav-statusStatus: No"

This will add "X-Clamav-status: yes" to any message that's found to have a virus. Since "clamdscan" uses the daemon, you'll need to enable Scan{{`Mail, Scan}}Archive and StreamSaveTo`Disk}} in clamav.conf