Attachment Filters
Last updated
Was this helpful?
Last updated
Was this helpful?
Attachment Filters can be created to filter out unwanted attachments from incoming emails and reduce duplication. All configured filters in an Attachment Filter are executed one after the other, meaning you can set up attachment filter chains for advanced filtering.
A unique name must be given to the Attachment Filter. Attachment Filters can be selected in the Mail Handlers' Create Issue/Add Comment actions by their names.
Duplicate Hash Filter filters out attachments if an attachment with the same content is already added to the issue. This option doesn't take filenames into consideration.
Duplicate Name Filter filters out attachments if the attachment's name matches any of the already attached files' names on the issue.
Duplicate Name And Size Filter filters out attachments if the attachment's name and size match any of the already attached files' names on the issue.
Duplicate filters only work in Add Comment actions as they match the new attachments from the incoming emails to already attached files. However, having them enabled won't break Create Issue Actions.
In File Name Filters regexes can be defined that will be matched against incoming attachments' names. If an attachment's name matches any of the regexes it will be filtered out. These regexes use Java flavor. Only one regex per line can be added. Optionally, filters can be named to help identify the patterns.
In Type And Size Filters regexes can be defined that will be matched against incoming attachments's MIME types. If an attachment's MIME type matches any of the regexes the size filters will be checked. If the incoming attachment's size is smaller than the defined Min Value in kilobytes (if more than 0) or bigger than the defined Max Size in megabytes (if more than 0), the attachment will be filtered out.
If both Min Size and Max Size are set to 0, the attachment will be filtered out, regardless of the size.