Mailgun router filter check if attachment exist

Viewed 302

I want to setup a filter in mailgun route to detect if an attachment is present. The documentation says it can filter based on MIME headers. I've tried the following options, but none have worked. Any ideas?

match_header("Content-Type", "multipart.*")
match_header("attachment-count", ".*")
match_header("attachment-0", ".*")
1 Answers
Related