プロジェクト

全般

プロフィール

Vote #72079

未完了

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

Admin Redmine さんが約2年前に追加. 約2年前に更新.

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

0%

予定工数:
category_id:
29
version_id:
0
issue_org_id:
11212
author_id:
16321
assigned_to_id:
0
comments:
11
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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


journals

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

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

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

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

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

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

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

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

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


related_issues

relates,New,11211,configure default settings for users getting created automatically via email import
relates,New,21158,Send E-Mail to Redmine: Copy E-Mail Header into Ticket Note
duplicates,Closed,19545,unknown_user=accept - put email address of sender in description
duplicates,Closed,10861,Processing incoming e-mails from anonymus users

Admin Redmine さんが約2年前に更新

  • カテゴリEmail receiving_29 にセット

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

いいね!0
いいね!0