discourse/app
Martin Brennan e9dc88a7b6
FIX: Link up reply to post correctly when emailing group (#13339)
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.
2021-06-10 15:28:50 +10:00
..
assets A11Y: Adjust heading rules on topic lists (#13353) 2021-06-10 10:59:30 +10:00
controllers FEATURE: Add user custom fields to user directory (#13238) 2021-06-07 12:34:01 -05:00
helpers FEATURE: Normalize the service worker route (#12343) 2021-05-25 19:39:31 -03:00
jobs DEV: ensure user export ordering is predictable (#13340) 2021-06-09 15:55:52 +10:00
mailers FEATURE: Use group SMTP settings for sending user notification emails (initial) (#13220) 2021-06-03 14:47:32 +10:00
models FIX: Link up reply to post correctly when emailing group (#13339) 2021-06-10 15:28:50 +10:00
serializers FEATURE: Add user custom fields to user directory (#13238) 2021-06-07 12:34:01 -05:00
services FIX: Handle timeout errors when sending push notifications (#13312) 2021-06-07 20:46:07 +02:00
views FIX: Theme tests should work in production (#13333) 2021-06-08 22:03:59 +03:00