mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 09:23:44 +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 |
||
---|---|---|
.. | ||
authentication_results.rb | ||
build_email_helper.rb | ||
cleaner.rb | ||
message_builder.rb | ||
message_id_service.rb | ||
processor.rb | ||
receiver.rb | ||
renderer.rb | ||
sender.rb | ||
styles.rb | ||
validator.rb |