Autor: Marc Perkel Data: A: exim-users Assumpte: [Exim] My Latest Filter Version
# Exim Filter
# Viruses and Executable Atachments
if $h_subject: contains "Seven Dwarfs"
or $message_body matches
"(?:Content-(?:Type:\\\\s*[\\\\w-]+/[\\\\w-]+|Disposition:\\\\s*attachment);\\\\s*(?:file)?name=|begin\\\\s+[0-7]{3,4}\\\\s+)(\"[^\"]+\\\\.(?:vbs|vbe|wsh|wsf|js|jse|exe|com|bat)\"|[\\\\w.-]+\\\\.(?:vbs|vbe|wsh|wsf|js|jse|exe|com|bat))[\\\\s;]"
then
save /var/mail/viruses
finish
endif
# Never Filter Exim Related Messages (or this filter would be filtered)
if "$h_subject: $message_body:" contains "exim"
then
finish
endif
# --------- Spam Filtering - Adds Header Tags for Spam --------------
# This filter just labels spam - doesn't delete it.
# Tests on subject Only
if $h_subject: contains "[ADV]"
or $h_subject: contains "promo"
or $h_subject matches "^ADV[: ]"
or $h_from contains "market"