Bug 380182

Summary: deleting several messages doesn't remove them from the message list
Product: [Applications] kmail2 Reporter: Antonio Rojas <arojas>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: faure, gerdfleischer, kenny1, kmg952, koller, kollix, luisfe, montel, niels_ole, panard, saba
Priority: NOR    
Version: 5.5.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Antonio Rojas 2017-05-25 12:16:41 UTC
Steps to reproduce:

- Enable message threading in the message list
- Try to remove a collapsed thread

The thread is correctly removed from the server, but not from the kmail message list until kmail is restarted.
Comment 1 Kenny Fairweather 2017-05-31 09:17:08 UTC
I can confirm this bug. Same software version, same description.
Comment 2 Antonio Rojas 2017-05-31 09:20:19 UTC
Actually this is unrelated to threading. The issue happens whenever one selects more than one message from the list and tries to delete them
Comment 3 luisfe 2017-05-31 14:08:18 UTC
I can confirm the bug, but I cannot reproduce it reliably.
Comment 4 Antonio Rojas 2017-06-06 16:25:01 UTC
*** Bug 380824 has been marked as a duplicate of this bug. ***
Comment 5 David Faure 2017-06-11 08:41:26 UTC
The new if (with early return) from commit 2edac82af (https://phabricator.kde.org/D5552, Martin Koller) is the reason for this bug. When moving (not deleting) multiple messages from a folder (including moving to trash, or archiving), the early return hits and the ETM doesn't notify of the removal.
Comment 6 Martin Koller 2017-06-11 09:04:28 UTC
Which I fixed with this https://phabricator.kde.org/D5711
Comment 7 Laurent Montel 2017-06-11 16:31:14 UTC
Which is not in 17.04 
so the fix is not in 17.04 branch => the bug is still here indeed.
Comment 8 David Faure 2017-06-11 19:31:32 UTC
Fix backported to https://commits.kde.org/akonadi/2dc7fbf569ba3f7eeef98fb818d7af0820caf7a3.
Comment 9 Laurent Montel 2017-06-12 04:36:54 UTC
*** Bug 381008 has been marked as a duplicate of this bug. ***
Comment 10 Wolfgang Bauer 2017-09-28 08:36:06 UTC
*** Bug 385159 has been marked as a duplicate of this bug. ***