Exclude attachments from incoming emails based on mime type
|Target version:||Candidate for next major release|
i use a digital signature in mail.app and if i reply to a issue-mail my answer will be added to the issue, but redmine adds also a smime.p7s file wich is my signature (attachment).
It would be helpful, if redmine learns to ignore s/mime attachments.
#5 Updated by marc maurice almost 3 years ago
We have a lot of users sending mails to redmine tickets with included images in html signatures.
Each time we have to delete the attachments manually in the ticket. and each time we delete an attachment a notification is sent.
Some attachments that are not real ones must be ignored. Just looking the file extension is not sufficient.
I'm not an email RFC expert, but Looking in two mail sources :
From a mail source with a real attachment :
------_=_NextPart_001_01CB3E16.D938DEBE Content-Type: application/msword; name="=?iso-8859-1?Q?R=E9union_du_18082010=2Edoc?=" Content-Transfer-Encoding: base64 Content-Description: =?iso-8859-1?Q?R=E9union_du_18082010=2Edoc?= Content-Disposition: attachment; filename="=?iso-8859-1?Q?R=E9union_du_18082010=2Edoc?="
From a mail source with an included attachment :
------_=_NextPart_002_01CB3D29.23FDF48F Content-Type: image/gif; name="image001.gif" Content-Transfer-Encoding: base64 Content-ID: <image001.gif@01CB3D39.E7847940> Content-Description: image001.gif Content-Location: image001.gif
In the "real" attachment, there is a "Content-Disposition: attachment;" ligne.
Maybe it's the way to detect real attachments from others ?
#17 Updated by Robert Hailey about 1 month ago
S/MIME & company logos could be handled with a configurable filename match in the admin/settings/incoming-email panel.
smime.p7s *.vcf my_company_logo.jpg spacer.gif
As for filtering out "inline" attachments, I would strongly disagree. Some email clients (like Apple's "Mail" app) automatically make attached images inline.