Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Use reply-to address for incoming emails if present #13896

Conversation

martin-brennan
Copy link
Contributor

@martin-brennan martin-brennan commented Jul 30, 2021

When the Reply-To header is present for incoming emails we
want to use it instead of the from address. This is usually the
case when forwarding an email via a mailing list into Discourse.

For now we are only using the Reply-To header if the email has
been forwarded via Google Groups, which is why we are checking the
X-Original-From header too. In future we may want to use the Reply-To
header in more cases.

When the Reply-To header is present for incoming emails we
want to use it instead of the from address. This is usually the
case when forwarding an email via a mailing list into Discourse.
lib/email/receiver.rb Outdated Show resolved Hide resolved
lib/email/receiver.rb Outdated Show resolved Hide resolved
lib/email/receiver.rb Outdated Show resolved Hide resolved
lib/email/receiver.rb Outdated Show resolved Hide resolved
@martin-brennan
Copy link
Contributor Author

@gschlager , @udan11, @lis2 can you please take another look at this one?

@martin-brennan martin-brennan merged commit b88d8c8 into main Aug 2, 2021
@martin-brennan martin-brennan deleted the feature/handle-reply-to-different-from-from-email-receiver branch August 2, 2021 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants