Project

General

Profile

Actions

Patch #3123

open

Check additional mail headers when creating issues via email

Added by Duncan Harris almost 15 years ago. Updated over 7 years ago.

Status:
Needs feedback
Priority:
Normal
Category:
Email receiving
Target version:
-
Start date:
2009-04-05
Due date:
% Done:

0%

Estimated time:

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.


Files

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

Also available in: Atom PDF