mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
Usually, when an email is received a user lookup is performed using the email address found in the `From` header. When an email has an `X-Original-From` header, if it is equal to `Reply-To` then it uses that one instead. The comparison was sensitive to whitespaces and other insignificant characters such as quotes because it reconstructed the `From` header. For the fixture added in this commit, it compared the reconstructed `From` header `John Doe <[email protected]>` with the `Reply-To` header `"John Doe" <[email protected]>`.
13 lines
352 B
Plaintext
13 lines
352 B
Plaintext
From: "'John Doe' via Forwarder" <[email protected]>
|
|
To: "[email protected]" <[email protected]>
|
|
Subject: Greetings
|
|
Date: Wed, 01 Jan 2021 12:00:00 +0000
|
|
Message-ID: <[email protected]>
|
|
X-Original-Sender: [email protected]
|
|
X-Original-From: "John Doe"
|
|
<[email protected]>
|
|
Reply-To: "John Doe"
|
|
<[email protected]>
|
|
|
|
Hello world!
|