12-16-2016 09:56 AM
I have a content filter to block certain file extensions which cause a back end application that processes these emails to fail.
I have Attachment File Info Filename contains
(?i)\.(png|art|dib|gif|ico|jfif|jpe|xbm)
which when you submit it becomes
attachment-filename == "(?i)\\.(png|art|dib|gif|ico|jfif|jpe|xbm)"
Problem is this blocks .jpe files as well as .jpeg which I don't want. Solution?
Thanks
Solved! Go to Solution.
12-16-2016 10:09 AM
Hello Tony,
You just need to include the end of string regex expression so these file extensions only match if they are the last characters in the filename.
attachment-filename == "(?i)\\.(png|art|dib|gif|ico|jfif|jpe|xbm)$"
12-16-2016 10:04 AM
Just change it to:
attachment-filename == "(?i)\\.(png|art|dib|gif|ico|jfif|jpeg|xbm)"
12-16-2016 10:09 AM
Hello Tony,
You just need to include the end of string regex expression so these file extensions only match if they are the last characters in the filename.
attachment-filename == "(?i)\\.(png|art|dib|gif|ico|jfif|jpe|xbm)$"
12-16-2016 10:31 AM
Jason, thanks for pointing that out. I had it that way in test but when I cut and pasted it over to production, I missed that.
Thanks for the quick answer.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: