Patch #3123

Check additional mail headers when creating issues via email

Added by Duncan Harris over 12 years ago. Updated almost 5 years ago.

Status:Needs feedbackStart date:2009-04-05
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Email receiving
Target version:-

Description

We have a setup with Redmine where users often send mail using different from addresses in the email. We use Google Apps for email, but this would apply to other mail systems where users can set up multiple from addresses in their email.

If users send email with a different from address than their registered one then Redmine ignores the incoming email.

To fix this issue I created the attached modification which checks the mail headers "Return-Path", "Sender" and finally "From" (as before) for a match to a user account.

The "Return-Path" header relies on getting mail server to set this to the envelope sender address. I use the preline program with qmail to get this set.

This works because Google Apps email (and GMail) always set the Sender and envelope sender addresses to the users main or canonical email address even if they choose a different "From" address.

mail_handler.rb.patch Magnifier - Patch for app/models/mail_handler.rb (1.7 KB) Duncan Harris, 2009-04-05 17:54

History

#1 Updated by Duncan Harris over 12 years ago

  • Assignee set to Jean-Philippe Lang

Thought maybe I should assign this as didn't hear anything. Hope this is the right thing to do.

#2 Updated by Duncan Harris over 12 years ago

By the way the patch was based on revision r2659

#3 Updated by Jean-Philippe Lang almost 12 years ago

  • Category changed from Email notifications to Email receiving

#4 Updated by Go MAEDA almost 5 years ago

  • Status changed from New to Needs feedback

Redmine now supports multiple email addresses for each user (#4244).
I think we can use the feature to resolve the problem described in this issue, so we don't have to implement this.

Also available in: Atom PDF