mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 13:48:48 +08:00
e9dc88a7b6
When replying to a user_private_message email originating from a group PM that does _not_ have a reply key (e.g. when replying directly to the group's SMTP address), we were mistakenly linking the new post created from the reply to the OP and the user who created the topic, based on the first IncomingEmail message ID in the topic, rather than using the correct reply to user and post number that the user actually replied to. We now use the In-Reply-To header to look up the corresponding EmailLog record when the user who replied was sent a user_private_message email, and use the post from that as the reply_to_user/post. This also removes superfluous filtering of incoming_email records. After already filtering by message_id and then addressed_to_user (which only returns incoming emails where the to, from, or cc address includes any of the user's emails), we were filtering again but in the ruby code for the exact same conditions. After removing this all existing tests still pass. |
||
---|---|---|
.. | ||
apple_mail_attachment.eml | ||
attached_eml_file.eml | ||
attached_pdf_file.eml | ||
attached_rb_file.eml | ||
attached_txt_file_2.eml | ||
attached_txt_file.eml | ||
auto_generated_allowlisted.eml | ||
auto_generated_header.eml | ||
auto_generated_precedence.eml | ||
auto_generated_unblocked.eml | ||
bad_destinations.eml | ||
blocklist_allowlist_email.eml | ||
body_with_image.eml | ||
bounced_email_multiple_status_codes.eml | ||
bounced_email.eml | ||
cc.eml | ||
chinese_reply.eml | ||
dmarc_fail.eml | ||
email_reply_1.eml | ||
email_reply_2.eml | ||
email_reply_3.eml | ||
email_reply_4.eml | ||
email_reply_like.eml | ||
email_reply_staged.eml | ||
email_reply_to_group_email_username.eml | ||
email_to_group_email_username_1.eml | ||
email_to_group_email_username_2_as_unknown_sender.eml | ||
email_to_group_email_username_2.eml | ||
encoded_display_name.eml | ||
encoded_filename.eml | ||
encoding_undefined_conversion.eml | ||
existing_user.eml | ||
forwarded_email_1.eml | ||
forwarded_email_2.eml | ||
forwarded_email_3.eml | ||
forwarded_email_4.eml | ||
forwarded_email_to_category.eml | ||
from_reply_by_email_address.eml | ||
from_the_future.eml | ||
gmail_html_reply.eml | ||
group_existing_user.eml | ||
hard_bounce_via_verp_2.eml | ||
hard_bounce_via_verp.eml | ||
hebrew_reply.eml | ||
html_reply.eml | ||
ignored.eml | ||
inactive_sender.eml | ||
inline_image_2.eml | ||
inline_image.eml | ||
inline_mixed_replies.eml | ||
inline_reply.eml | ||
invalid_from_1.eml | ||
invalid_from_2.eml | ||
iphone_signature.eml | ||
like.eml | ||
mailinglist_dmarc_fail.eml | ||
mailinglist_reply.eml | ||
mailinglist_short_message.eml | ||
mailinglist_unsubscribe.eml | ||
mailinglist.eml | ||
missing_message_id.eml | ||
mute.eml | ||
new_user.eml | ||
no_body_with_image.eml | ||
no_body.eml | ||
no_date.eml | ||
no_from.eml | ||
no_subject.eml | ||
null_byte_in_subject.eml | ||
old_destination.eml | ||
on_date_contact_wrote.eml | ||
original_message.eml | ||
paragraphs.eml | ||
previous_replies.eml | ||
readonly.eml | ||
removed_attachments.eml | ||
reply_and_forwarded.eml | ||
reply_user_matching.eml | ||
reply_user_not_matching_but_known.eml | ||
reply_user_not_matching.eml | ||
reply_with_8bit_encoding.eml | ||
reply_with_weird_encoding.eml | ||
screened_email.eml | ||
silenced_sender.eml | ||
soft_bounce_via_verp.eml | ||
spam_x_ses_spam_verdict.eml | ||
spam_x_spam_flag.eml | ||
spam_x_spam_status.eml | ||
staged_reply_restricted.eml | ||
staged_sender.eml | ||
text_and_html_reply.eml | ||
text_reply.eml | ||
tl3_user.eml | ||
tl4_user.eml | ||
too_many_mentions.eml | ||
too_small.eml | ||
track.eml | ||
unparsable_email_addresses.eml | ||
unsubscribe_body.eml | ||
unsubscribe_new_user.eml | ||
unsubscribe_subject.eml | ||
user_not_found.eml | ||
verp_bounce_different_final_recipient.eml | ||
watch.eml |