Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Handle forwarded email quotes around Reply-To display name (#14384)
The display name can have quotes around it, which does not work with our current comparison of a from field (in this case Reply-To) and another header (X-Original-From), because we are not comparing the two values in the same way. This causes an issue where the commit here: b88d8c8 will not work properly; the forwarded email gets the From address instead of the Reply-To address as intended.
- Loading branch information
1 parent
36bd6e8
commit 4fb7d04
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
spec/fixtures/emails/reply_to_different_to_from_quoted_display_name.eml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
From: 'Marston, John' via Western Support <westernsupport@test.mailinglist.com> | ||
Reply-To: =?iso-8859-1?Q?Marston=2C_John?= <johnmarston@reddeadtest.com> | ||
To: team@bar.com | ||
Subject: I need some support | ||
Date: Fri, 15 Jan 2016 00:12:43 +0100 | ||
Message-ID: <3848c3m98r439c348mc349@test.mailinglist.com> | ||
Mime-Version: 1.0 | ||
Content-Type: text/plain | ||
Content-Transfer-Encoding: 7bit | ||
X-Original-From: Marston, John <johnmarston@reddeadtest.com> | ||
Precedence: list | ||
Mailing-list: list westernsupport@test.mailinglist.com; contact | ||
westernsupport+owners@test.mailinglist.com | ||
List-ID: <westernsupport@test.mailinglist.com> | ||
|
||
Ain't no trouble. |