Project

General

Profile

Actions

Feature #3760

open

E-mail notifications for issue update/creation should include the attachments in the email

Added by Enderson Maia almost 15 years ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
2009-08-19
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

When I send an attachment via e-mail, or via "New Issue" tab, the e-mail notification is sent, but without the attachmemnt.

I think that the e-mail notifications for Issues should have the attached files on it.

In my situation, some users just have access to the system via e-mail, and at the moment, they can't use the feature of attaching files on the Issues on received e-mails from Redmine.


Files

email-attachments.patch (2.4 KB) email-attachments.patch Brian Crowell, 2011-07-27 22:53
redmine-2770-hack-1.4.3.patch (1.63 KB) redmine-2770-hack-1.4.3.patch Hack fix to #2770 against 1.4.3 Brian Crowell, 2012-12-10 16:16
redmine-3760-1.4.3.patch (1.65 KB) redmine-3760-1.4.3.patch Patch for sending email attachments on 1.4.3 Brian Crowell, 2012-12-10 16:16
attachment by mail receive.tiff (81 KB) attachment by mail receive.tiff Selim Arslan, 2013-08-08 13:58
redmine3.1-3760.patch (2.23 KB) redmine3.1-3760.patch Patch for this issue against 3.1 stable Brian Crowell, 2015-10-02 02:40
RefreshPicture.png (5 Bytes) RefreshPicture.png Anthony BROCHET, 2017-01-03 14:13

Related issues

Related to Redmine - Feature #2770: Display of inline attached images in email notificationReopened2009-02-18

Actions
Related to Redmine - Feature #12293: Add links to attachments in new issue email notificationClosedJean-Philippe Lang

Actions
Has duplicate Redmine - Feature #12516: Issue Email Notification To Include AttachmentsClosed

Actions
Has duplicate Redmine - Feature #4242: Send and attachmentClosed2009-11-18

Actions
Has duplicate Redmine - Feature #3152: Embed images in the notify emails instead of write a image link to redmine serverClosed2009-04-10

Actions
Actions #1

Updated by Jean-Philippe Lang over 14 years ago

  • Tracker changed from Defect to Feature
Actions #2

Updated by Eric Davis over 14 years ago

  • Subject changed from E-mail notifictions don't come with attachments to E-mail notifictions for issue update should include the attachments in the email

I reworded the subject so it's a little easier to understand.

Actions #3

Updated by claude g over 13 years ago

I'm interested too if you could have a patch. You can add a link with Patch #2724 also it seems (those two issues are similar).

Actions #4

Updated by Brian Crowell almost 13 years ago

This patch will add attachments to outbound emails, but it requires a fix to #2770 first. I have another patch there, but it's very hackish.

Actions #5

Updated by Brian Crowell almost 13 years ago

Sorry, I should mention that patch is against Redmine 1.0.5.

Actions #6

Updated by Terence Mill almost 13 years ago

That should be an option. Think of bigger files send out x times and many projects see redmine as central document store, so copying files all over isnT wished.

Ir would be usefuly in any case if any attachment gets added as http link to the attachment below the ticket text if not already linked in the ticket description itself.-

Actions #7

Updated by Enderson Maia almost 13 years ago

Terence Mill wrote:

That should be an option. Think of bigger files send out x times and many projects see redmine as central document store, so copying files all over isnT wished.

Ir would be usefuly in any case if any attachment gets added as http link to the attachment below the ticket text if not already linked in the ticket description itself.-

In my case, some people don't have web access to Redmine, just via e-mail, they couldn't get via http link.

Actions #8

Updated by Hisham Al-Shurafa over 12 years ago

+1 for this feature

Actions #9

Updated by Al McNicoll over 11 years ago

I tried applying Brian Crowell's patch on a 1.2 install and found that it did create attachments, but the attachments were just text files containing the text of the update and the main ticket description. I suspect that this must therefore be a change between versions 1.0.5 and 1.2.0. Or maybe this is a consequence of the mentioned #2770?

Is there anyone out there with a little more Ruby experience than me who could look at the patch and bring it more up to date?

Actions #10

Updated by Brian Crowell over 11 years ago

Here are versions of the patches against Redmine 1.4.3.

What you're seeing is not #2770. #2770 is about the timing of adding the attachments to the issue before sending out notifications. It probably has more to do with setting the multipart/alternative content type on the email, which I see I've dropped in my latest patch.

I should also mention that my #3760 patch might only work on Linux, since I'm using the "file" command to generate a content-type.

Actions #11

Updated by Etienne Massip about 11 years ago

  • Subject changed from E-mail notifictions for issue update should include the attachments in the email to E-mail notifications for issue update/creation should include the attachments in the email
Actions #12

Updated by Dmitry K about 11 years ago

Brian Crowell wrote:

Here are versions of the patches against Redmine 1.4.3.

These patches does not work with Redmine 2.3.x :(

Actions #13

Updated by Brandon Bertelsen almost 11 years ago

+1

Actions #14

Updated by Selim Arslan almost 11 years ago

I Need the Function, too.

Redmine Version 2.3.2

Actions #15

Updated by Selim Arslan almost 11 years ago

The system used by redmine.org has this function. How did you activate it?

Look to the attachment.

Actions #16

Updated by Pavel Liavonau over 10 years ago

Dmitry K wrote:

Brian Crowell wrote:

Here are versions of the patches against Redmine 1.4.3.

These patches does not work with Redmine 2.3.x :(

It is very useful function for those people, who like to use only email client. They need to see the attach icon with notification of changing/creating issue. Now they need to go to redmine site on almost every mail to look for attachments.
Developers, please include this feature in roadmap, or update the patches up to current stable version.
Thanks.

Actions #17

Updated by Paweł Pielat about 10 years ago

+1
We also need this feature for 2.3.4. Is it going to be aplied in future?

Actions #18

Updated by Fabian Strasser over 9 years ago

+1

There is still high demand for that feature. Our company could need that feature greatly for the daily routine. Please make it an official patch for the next minor/major release candidate.
This should be opt-in however, like there's a checkbox that needs activation within the projects' settings, meaning this should be a per-project setting.

Scenario why the current situation with only attachment-links being sent isn't (always) good:

0. We run an internal hotline where departments can pop-in general questions. Usually these are answered by the hotline guys directly. Sometimes however they need help from another department that has specialised information.
1. Only our hotline guys have access to the Redmine installation to view and edit tickets. We additonally defined a usergroup that is only allowed to comment on tickets, nothing more. This groups' purpose is to enable those people to send in comments/replies via email.
2. An issue is created, however help from another department is needed. The issue gets assigned to one of the persons of the group mentioned above. The person gets an email notification with the issue and the request on what to do/how to help. However - in case that there are attachments - those aren't sent along, but only linked.
3. Now the person has to click the link and has to sign in into the system for viewing the attachment. For that we had to enable the usergroup additonal rights to view documents.

Here the patch could help. Instead of having to click a link, logging in and looking at the attachment there (and having to grant those people additional rights within the system), the person could just have it mailed to his/her inbox directly.

Actions #19

Updated by stephane chouinard over 9 years ago

+1

Actions #20

Updated by Rhiino Rex over 9 years ago

+1
We also need this feature for Redmine 2.3.x (or 2.6.x). Does anyone has a working patch?

Actions #21

Updated by huang huang almost 9 years ago

+1

Actions #22

Updated by trigal trigal almost 9 years ago

+1

Actions #23

Updated by Maicon Zucco almost 9 years ago

+1

Actions #24

Updated by Brian Crowell over 8 years ago

Greetings! Well, there was finally a reason at our company to update to Redmine 3.1, and so of course I had to update the patch that lets us get issue attachments via email. This should be the only patch you need. patch -p1 < redmine3.1-3760.patch should do the trick.

This patch:

  • places attachments in outbound emails for issue creation and updates
  • adds attachments before creating the issue in the inbound mail handler so they're available to the mailer (:container is removed from the Attachment.create statement to avoid saving the issue first)
Actions #25

Updated by Go MAEDA about 8 years ago

Actions #26

Updated by Miodrag Milic almost 8 years ago

+1

Our vendors communicate with our Redmine only via email so they can never get attached files.

Actions #27

Updated by Anthony BROCHET over 7 years ago

Brian Crowell wrote:

Greetings! Well, there was finally a reason at our company to update to Redmine 3.1, and so of course I had to update the patch that lets us get issue attachments via email. This should be the only patch you need. patch -p1 < redmine3.1-3760.patch should do the trick.

This patch:

  • places attachments in outbound emails for issue creation and updates
  • adds attachments before creating the issue in the inbound mail handler so they're available to the mailer (:container is removed from the Attachment.create statement to avoid saving the issue first)

Hello,

Does the patch only work with a text format attachment? Is it normal?

You can find attach an image sent from a notification of Redmine.

Thank you for your help.

Actions #28

Updated by hide hokawa over 7 years ago

Hi Anthony, following modification in redmine3.1-3760.patch fixed attachment corruption issue occurred on my win environment.
old code: File.read(attachment.diskfile)
new code: File.binread(attachment.diskfile)
(two locations need modified)

Actions #29

Updated by hide hokawa over 7 years ago

Now trying plugin version based on conversation on this thread.
https://github.com/team888/redmine-issue_mail_with_attachments-plugin

Actions #30

Updated by Anthony BROCHET over 7 years ago

Thank you very much it works with this following correction:

  • File.binread(attachment.diskfile)
Actions #31

Updated by team 888 over 7 years ago

Above plugin is listed on Plugins Directory now:
http://www.redmine.org/plugins/issue_mail_with_attachments

Actions #32

Updated by Toshi MARUYAMA over 6 years ago

  • Has duplicate Feature #3152: Embed images in the notify emails instead of write a image link to redmine server added
Actions #33

Updated by William Boulet over 6 years ago

Just tried to install plugin http://www.redmine.org/plugins/issue_mail_with_attachments on a Windows server installation (Bitnami stack), but after placing the plugin Redmine services don't start anymore.

Is it only linux compatible ?

Actions #34

Updated by Jon Goldberg 10 months ago

After waiting years for a Redmine 4 (then Redmine 5) version of http://www.redmine.org/plugins/issue_mail_with_attachments or this bug to be fixed, I decided to teach myself Ruby and write the plugin myself: https://github.com/MegaphoneJon/redmine_email_attachments

This is literally my first Ruby project, so there's no warranty express or implied! In particular, it assumes your files are in `/usr/src/redmine/files`, because that's where they are in my Docker install.

Actions

Also available in: Atom PDF