プロジェクト

全般

プロフィール

Vote #65291

完了

Exclude attachments from incoming emails based on file name

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
開始日:
2009/05/25
期日:
進捗率:

0%

予定工数:
category_id:
29
version_id:
70
issue_org_id:
3413
author_id:
952
assigned_to_id:
1
comments:
23
status_id:
5
tracker_id:
2
plus1:
10
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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":http://en.wikipedia.org/wiki/S/MIME attachments.


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+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.
--------------------------------------------------------------------------------
+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 :
<pre>
------_=_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?="
</pre>

From a mail source with an included attachment :
<pre>
------_=_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
</pre>

In the "real" attachment, there is a "Content-Disposition: attachment;" ligne.

Maybe it's the way to detect real attachments from others ?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+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.
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1 for this.
We are in the same case and issues are pollute with a lot of signature attachment.
--------------------------------------------------------------------------------
Please check this patch which skips inline attachments, mostly signatures.
Patch made to current trunk version.
--------------------------------------------------------------------------------
Sorry, previous file included patch to .gitignore file :)
This one only includes small patch to mail_handler.rb model.

--------------------------------------------------------------------------------
+1

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

This feature would be great.
--------------------------------------------------------------------------------
+1

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

e.g.
<pre>
smime.p7s
*.vcf
my_company_logo.jpg
spacer.gif
</pre>

As for filtering out "inline" attachments, I would strongly disagree. Some email clients (like Apple's "Mail" app) automatically make attached images inline.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,12866,attachment from received mails
duplicates,Closed,14998,Exclude some attachment types when receiving issues by email
duplicates,Closed,18568,Ignore certain attachment
duplicates,Closed,20993,auto-importing GPG signature file

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン2.4.0_70 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0