mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 18:13:58 +08:00
82cb67e67b
When creating a direct message to a group with group SMTP set up, and adding another person to that message in the OP, we send an email to the second person in the OP via the group_smtp job. This in turn creates an IncomingEmail record to guard against IMAP double sync. The issue with this was that this IncomingEmail (which is essentialy a placeholder/dummy one) was having its Message-ID used as the canonical References Message-ID for subsequent emails sent out to user_private_message recipients (such as members of the group), causing threading issues in the mail client. The canonical <topic/ID@HOST> format should be used instead for these cases. This commit fixes the issue by only using the IncomingEmail for the OP's Message-ID if the OP was created via our handle_mail email receiver pipeline. It does not make sense to use it in other cases. |
||
---|---|---|
.. | ||
authentication_results_spec.rb | ||
cleaner_spec.rb | ||
email_spec.rb | ||
message_builder_spec.rb | ||
processor_spec.rb | ||
receiver_spec.rb | ||
renderer_spec.rb | ||
sender_spec.rb | ||
styles_spec.rb |