La réponse par adresse e-mail est cassée

Build 2.9.0.beta4 (82ac698d4f)

In the Admin → Settings → Email page

Discourse ignores the Reply by email address if the email address does not contain %{reply_key} and instead will use the default email address in the to and reply-to headers of the emails it sends out.

Here are the steps to replicate the issue and also what works:

BROKEN

Assuming the default email address set in discourse is forum@domain.com

When discourse sends emails, the from and the reply-to headers contain forum@domain.com instead of community.forum@domain.com


WORKING

However, if I add %{reply_key} to the reply by email address:

  • reply by email address → community.forum+%{reply_key}@domain.com

This works as expected and the email now comes from community.forum+<id>@domain.com with the reply-to header also set correclty.