freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.75k stars 468 forks source link

Find prev_thead iteratively looking in-reply-to and references #4026

Closed anxodio closed 1 month ago

anxodio commented 1 month ago

Fixes https://github.com/freescout-helpdesk/freescout/issues/4020

It iterates all the possibilities of reply IDs and using the first we found in our freescout threads, following the order: In-Reply-To, References (by order), special FS marker. In most cases it will work as always (getting the In-Reply-To at the first attempt), but if not, it will try the other possibilites.

freescout-helpdesk commented 1 month ago

Looks good. We'll do some testing.