News About Features Documentation FAQ ChangeLog Mailinglist Download GIT Screenshots RRDtool MRTG WebQ Logwatch Reporter Latest stable: 2.0.2-1 Latest devel: 2.0.3-0.beta5 |
attach_name() Attachment name scanner. This scanner checks defined name of file in mime attachments. By default known executable extensions will be blocked. This scanner can be used only if it's parent is parsemail(). Usage: attach_name({b'VirName': b'regexp_pattern', ..}, flags=re.I) Where: 'VirName' is a string, which defines virus name 'regexp_pattern' is an regular expression. If this expression is found in attachment's name, VirName is returned as virus name. flags is a number, which defines regular expression flags. By default IGNORECASE is used. Example: attach_name({ 'Executable': '\.(exe|com|vxd|dll|cpl|scr|pif|lnk|bat|vbs|js)$' }) |