Feature #11212

save sender email to issue when mail import and unknown_user=accept no_permission_check=1

Added by Terence Mill over 5 years ago. Updated over 3 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Email receiving
Target version:-
Resolution:

Description

We need to see the sender of the email the issue is created on mail import, so we can establish a support line via redmine.
At the moment we only see anonymous for issue author and therefore can't "call" em back. We don't know where the issue came from.

Why not show the sender email, without having a "full" user account?
We don't want to auto create users because all of them will immidiately get mails on any action on their tickets. This is related to the fact we can't configure default settings - see #11211
Furthermore auto creation of user account for support line for "outside" customers will not fit logically toegether when using ldap auth for "internal" project members - i know it works technically, but it feels pitty.

I think saving sender mail to issue body will be also an "option".

add_copy_sender_to_ticket_option.diff Magnifier - patch to add an option for this (660 Bytes) Jan S, 2014-03-26 23:55


Related issues

Related to Redmine - Feature #11211: configure default settings for users getting created aut... New
Duplicated by Redmine - Feature #19545: unknown_user=accept - put email address of sender in desc... Closed

History

#1 Updated by Terence Mill over 5 years ago

The problem is that if i set default notification to "Only to things I am assigned to" the auto created user still gets mail for the issue is created for the mail he send. That baffles our customers, because they don't even know of redmine being used and so don't shall to.

#2 Updated by Terence Mill over 5 years ago

An moreover importnat the user even get a mail if he is created with user an password, what is even worse if we only want ldap for authentification

#3 Updated by Maciej Maczynski about 5 years ago

I had the same problem, and I patched Redmine as follows:

File: redmine/app/models/mail_handler.rb

In the method receive_issue, you will find a line like that:

issue.description = cleaned_up_text_body

After this line, I added the following:

sender_addr = email.from.to_a.first.to_s.strip
issue.description = "Reported by e-mail by [#{sender_addr}]:\n" + issue.description;

This puts sender address at the front of issue description text.

Yes, this is lousy work-around.
The solution, I think, would be a mailer-task option to store sender address together with the issue.

#4 Updated by Toshi MARUYAMA about 5 years ago

  • Category set to Email receiving

#5 Updated by Jan S over 3 years ago

I've added a little patch that adds a "copy_sender_to_ticket" option to the mail handling. A more advanced patch with further configuration options (e.g. copy mailheaders) would still be interesting but right now this works for me and I wouldn't mind if this would be included right away as one can always further extend this as time goes by.

#6 Updated by Go MAEDA over 2 years ago

  • Related to Feature #19545: unknown_user=accept - put email address of sender in description added

#7 Updated by Go MAEDA over 2 years ago

  • Related to deleted (Feature #19545: unknown_user=accept - put email address of sender in description)

#8 Updated by Go MAEDA over 2 years ago

  • Duplicated by Feature #19545: unknown_user=accept - put email address of sender in description added

#9 Updated by Toshi MARUYAMA over 2 years ago

  • Related to Feature #11211: configure default settings for users getting created automatically via email import added

Also available in: Atom PDF