mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 13:03:45 +08:00
a6be4972a8
When we build and send emails using MessageBuilder and Email::Sender we add custom headers defined in SiteSetting.email_custom_headers. However this was causing errors in cases where the custom headers defined a header that we already specify in outbound emails (e.g. the Precedence: list header for topic/post emails). This commit makes it so we always use the header value defined in Discourse core if there is a duplicate, discarding the custom header value from the site setting. cf. https://meta.discourse.org/t/email-notifications-fail-if-duplicate-headers-exist/222960/14 |
||
---|---|---|
.. | ||
admin_confirmation_mailer.rb | ||
download_backup_mailer.rb | ||
group_smtp_mailer.rb | ||
invite_mailer.rb | ||
rejection_mailer.rb | ||
subscription_mailer.rb | ||
test_mailer.rb | ||
user_notifications.rb | ||
version_mailer.rb |