Skip to main content

Attachment name

Attachment name

This condition lets you filter messages based on attachment filenames. This is useful for blocking specific file types, identifying documents by name, or catching potentially dangerous attachments.

Match using

Match using

Choose how to match the filename:

  • Exact match – The filename must match exactly (case-insensitive)
  • Wildcards – Use * to match patterns (e.g., *.exe matches any executable file)
  • Regular expression – Use advanced pattern matching for complex rules

Filename

Enter the filename or pattern you want to match.

Examples

  • Block executables: *.exe with wildcards
  • Find invoices: invoice*.pdf with wildcards
  • Catch specific documents: contract-2024.docx with exact match
  • Block multiple file types: .*\.(exe|bat|cmd|scr)$ with regex
  • Find dated reports: report-[0-9]{4}-[0-9]{2}\.xlsx with regex
  • Identify suspicious files: *.zip.exe with wildcards (double extensions)

Additional resources