Mailroom should ignore certain attachment types
Description
When replying by email, email attachments are added to the ticket. Replying by an S/MIME signed email will add the attachment smime.p7s
as well. This should be ignored.
Proposal
The incoming email
section of gitlab.rb
should allow to specify acceptable MIME types. Anything not listed here should be ignored. It could look like
gitlab_rails['incoming_email_acceptable_mime_types'] = "*/*" # allow all, this could be the default
gitlab_rails['incoming_email_acceptable_mime_types'] = "text/*" # only text types
gitlab_rails['incoming_email_acceptable_mime_types'] = "text/*,image/*" # multiple values, comma separated
gitlab_rails['incoming_email_acceptable_mime_types'] = %w(text/* image/*) # multiple values, now as array of strings
Regarding multiple values, I'm not sure if the comma separated values are better or the ruby-style arrays.