2.24.2.1.1.3. File filtering
Regular expressions can be used to filter files with a specific extension. Create a filter to automatically delete emails containing a file with the extension .php
:
In the section "Rules" need to choose "Body of the letter", then "matches regular expression" and enter regular expression
filename=.+\.php
Instead .php
any other extension can be specified. In section "Actions" need to choose "Delete message" and save the changes.