Email virus filtering software is covered in
Section 24.4.3, using clamav. The
clamscan command can be used in evolution to
find messages containing a virus. To use it in, create a shell script,
perhaps in /usr/local/bin/clam-filter, making it executable,
and containing just:
Then in evolution create a new filter with
Tools->Filter and click on
Add. Call the new filter something like `ClamScan'. Select
`Pipe Message to Shell Command' as the first part of the criteria.
Then fill in /usr/local/bin/clam-filter as the command to
run. Set `Returns' and `1' for the other fields. For the action choose
a folder into which the identified virus email should be placed
(rather than deleting it, just in case clamscan gets it
wrong). Click OK to close the filter and then OK to close the filter
editor. You are now done!
clamscan --quiet --stdout --recursive --mbox -
Copyright © 1995-2020 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open
source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials
of Data Science.