Home
 Products
 Download
 Buy
 Support
- F.A.Q.
-- MailGate
-- POPWeasel
-- SpamWeasel

- Error Codes
- Configuration
- Release Notes
- Year 2000

 Beta Area
 Contacts
 About Us
 Forum




SpamWeasel Support Issues

Q. How can I identify specific attachments in an e-mail?
A. SpamWeasel comes with a rule titled "Check mail body for 'Undesirable Attachment Marks'", which will parse a list of whatever attachment types you define, and will mark any messages containing these attachments as spam.

If an e-mail was sent to you with an attached file named "putty.exe", the e-mail will contain a line identifying it such as:

Content-Type: application/x-msdownload; name="putty.exe"

If you edit the "Undesirable Attachment Marks" list (On the Patterns tab), you'll see some predefined patterns for specific atachments, e.g.:

_*name="*.vbs"*
_*name="*.scr"*
_*name="LOVE-LETTER-FOR-YOU.TXT.vbs"*

To create a pattern that will catch any executable files, you can add a line:

_*name="*.exe"*

Note: The "_" character specifies that the pattern will only be matched if it's found on a single line within the e-mail. For example, _*name="*.exe"* will only return a match if the strings name=" and .exe" occur on a single line.


Return To FAQ