Project

General

Profile

Actions

Feature #3413

closed

Exclude attachments from incoming emails based on file name

Added by Marco Tralles almost 15 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Email receiving
Target version:
Start date:
2009-05-25
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

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.


Files

smime.png (11.1 KB) smime.png a lot of smime-files are added to the issue if using the mail-interface Marco Tralles, 2009-05-25 16:34
mail_handler_ignore_inline_attachments_patch.diff (1.44 KB) mail_handler_ignore_inline_attachments_patch.diff Egidijus Zideckas, 2012-11-20 09:46
mail_handler_ignore_inline_attachments_patch.diff (1.25 KB) mail_handler_ignore_inline_attachments_patch.diff v2 Egidijus Zideckas, 2012-11-20 09:49

Related issues

Has duplicate Redmine - Defect #12866: attachment from received mailsClosed

Actions
Has duplicate Redmine - Feature #14998: Exclude some attachment types when receiving issues by emailClosed

Actions
Has duplicate Redmine - Feature #18568: Ignore certain attachmentClosed

Actions
Has duplicate Redmine - Defect #20993: auto-importing GPG signature fileClosed

Actions
Actions #1

Updated by Jean-Philippe Lang almost 15 years ago

  • Subject changed from digital-signature-attachments to Exclude attachments from incoming emails
Actions #2

Updated by Jean-Philippe Lang almost 15 years ago

  • Tracker changed from Defect to Feature
Actions #3

Updated by Jean-Philippe Lang almost 15 years ago

  • Subject changed from Exclude attachments from incoming emails to Exclude attachments from incoming emails based on mime type
Actions #4

Updated by Patrick Cummins over 14 years ago

+1 for this.

It seems like a very easy change from looking at the source. Even ignoring files by extension would work.

I'm new to ruby... but I'll try to write a patch if I have time.

Actions #5

Updated by marc maurice over 13 years ago

+1

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 ?

Actions #6

Updated by Toshi MARUYAMA about 13 years ago

  • Category set to Attachments
Actions #7

Updated by Egidijus Zideckas over 12 years ago

+1

Actions #8

Updated by Max Albrecht over 12 years ago

+1
i agree that filtering based on mime makes sense in the long run, but for now a small patch would be appreciated. just a comma-seperated list of extension to ignore, defaulting to the very obvious ones: vcf,p7s and other signatures.

Actions #9

Updated by Terence Mill over 12 years ago

+1

Actions #10

Updated by Kota Shiratsuka about 12 years ago

+1

Actions #11

Updated by Etienne Massip about 12 years ago

  • Category changed from Attachments to Email receiving
  • Target version set to Candidate for next major release
Actions #12

Updated by Terence Mill about 12 years ago

+1

Actions #13

Updated by Anonymous over 11 years ago

+1 for this.
We are in the same case and issues are pollute with a lot of signature attachment.

Actions #14

Updated by Egidijus Zideckas over 11 years ago

Please check this patch which skips inline attachments, mostly signatures.
Patch made to current trunk version.

Actions #15

Updated by Egidijus Zideckas over 11 years ago

Sorry, previous file included patch to .gitignore file :)
This one only includes small patch to mail_handler.rb model.

Actions #16

Updated by Jens Schneider about 11 years ago

+1

we have the same problem (company logo included in signature)

This feature would be great.

Actions #17

Updated by Robert Hailey about 11 years ago

+1

S/MIME & company logos could be handled with a configurable filename match in the admin/settings/incoming-email panel.

e.g.

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.

Actions #18

Updated by Jean-Philippe Lang over 10 years ago

  • Has duplicate Feature #14998: Exclude some attachment types when receiving issues by email added
Actions #19

Updated by Jean-Philippe Lang over 10 years ago

  • Subject changed from Exclude attachments from incoming emails based on mime type to Exclude attachments from incoming emails based on file name
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version changed from Candidate for next major release to 2.4.0
  • Resolution set to Fixed

Robert Hailey wrote:

S/MIME & company logos could be handled with a configurable filename match in the admin/settings/incoming-email panel.

Feature added in r12168, a new setting is added to the application settings.

Actions #20

Updated by Toshi MARUYAMA over 9 years ago

Actions #21

Updated by Toshi MARUYAMA almost 9 years ago

Actions #22

Updated by Toshi MARUYAMA almost 9 years ago

Actions #23

Updated by Toshi MARUYAMA over 8 years ago

  • Has duplicate Defect #20993: auto-importing GPG signature file added
Actions

Also available in: Atom PDF