Created attachment 1796 [details] Patch fixing the issue. When new emails arrive, the summary list is updated and the read threads are removed if the option 'Hide read threads' is checked. However, if you are reading the last email of a thread, then it automatically goes to the next email. If the new selected email happens to be the last read in a thread, then the next update will do the same even though the user might not have seen that message yet. Attaching a patch that fixes the issue for me.
The patch looks good to me and works fine, many thanks! Unless somebody raises any objection I'll push it soon.
Changes related to this bug have been committed. Please check latest Git and update the bug accordingly. You can also get the patch from: http://git.claws-mail.org/ ++ ChangeLog 2017-09-07 13:59:03.593458575 +0200 http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=ed0ef51b19250f4f00fb685c4bcee3cba3d6dfa3 Merge: d0c5d65 e11b4ed Author: Colin Leroy <colin@colino.net> Date: Thu Sep 7 13:59:02 2017 +0200 Merge branch 'master' of file:///home/git/claws http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=e11b4ed901d0b8d1844c199b9dbd7bb5b7a48c25 Author: Flavio Leitner <fbl@sysclose.org> Date: Sat Aug 12 18:28:23 2017 -0300 Fix bug #3881: Keep read thread during update if it is selected. When new emails arrive, the summary list is updated and the read threads are removed if the option 'Hide read threads' is checked. However, if you are reading the last email of a thread, then it automatically goes to the next email. If the new selected email happens to be the last read in a thread, then the next update will do the same even though the user might not have seen that message yet. This patch fixes it to keep the thread if a message is selected.