Bug 297136

Summary: Once quicksearch as been used, you can change of mail folders, but will always see the same mails
Product: [Applications] kmail2 Reporter: Alexandre Bonneau <alexandre.bonneau>
Component: filteringAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: major CC: christian.saemann, kollix, lacsilva, m.wege, montel, philipp.woelfel
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexandre Bonneau 2012-03-30 19:50:32 UTC
kmail2 v4.8.1

Reproducible:
Always

Steps to Reproduce:
- Select a mail folder like 'local inbox'
- Type "ab" in the folder quicksearch field
- all the mail folders containing "ab" are shown, but...
- when selecting those folders, the message list doesn't change and you can only see mails from the previously selected folder, 'local inbox' in this exemple.
- Even if you clear the quicksearch folder, the behavior is still borked, so you have to restart kmail2 to make it usable. It's a major bug.

Actual Results:
see above

Expected Results:
When selecting a 'filtered' folder, being able to see the corresponding mail in it.
Comment 1 Laurent Montel 2012-04-05 12:23:48 UTC
can't reproduce here.
Work fine.
Comment 2 Alexandre Bonneau 2012-04-09 09:35:06 UTC
The bug is still present in 4.8.2, although its behavior is a bit different since you are not stuck in a deadend and can somehow manage to return to a stable state using a few times the quicksearch.

Steps to Reproduce:
- Select a mail folder like 'local inbox' (maildir format in my case, with some unread mails. The total count of unread mails is 23, and total mails 1069)
- Type "kde" in the folder quicksearch field (just under the favorite icons)
- all the mail folders containing "kde" are shown in the folder list. The mail list is still showing the previous mails from the 'local inbox' folder, without any selected one.
- when selecting one of those folders, the message list doesn't change (as you can only see mails from the previously selected folder, 'local inbox' in this exemple), BUT the first unread email in that message list get selected (and displayed). (BUG)
- if I select a different folder, the emails of that folder get 'mixed up' with the current 'local inbox' folder (BUG)
- if I reselect the very first filtered folder, I can only see the content of the 'local inbox' folder, without any mail from that selected folder
- if you clear the quicksearch folder with the little black arrow, the folder list is displayed correctly again, with the 'local inbox' automatically selected.
- if you select another folder, then you have a random behavior ; sometimes its content is displayed accordingly (so the previous 4.8.1 bug seems to have disappeared), sometimes it doesn't. You have to toy with the quicksearch when the bug is there to somehow reset the bug to a normal state.

$ kmail -v
Qt : 4.8.0
KDE : 4.8.2 (4.8.2)
KMail : 4.8.2
Comment 3 Luis Silva 2012-05-29 21:39:37 UTC
I can confirm that this bug exists still in master.
It is a duplicate of Bug 287685.
Comment 4 Philipp Woelfel 2012-06-20 16:40:10 UTC
I can confirm this bug for KDE 4.8.4 (OpenSuSE build) and the latest KDE 4.9 packages (probably beta2) available from OpenSuSE. This bug renders the folder quicksearch useless. Moreover, once I have accidentally entered something in there, I have to restart kmail2 in order to get back to a predictable behavior. Therefore, I think the bug is critical.
Comment 5 Martin Koller 2012-07-21 21:03:57 UTC
Can reproduce with current KDE/4.9.
When I select a folder which is filtered by the folder quicksearch, its contents gets intermixed with the previous mails shown from a different folder.
Comment 6 Laurent Montel 2012-08-14 16:23:13 UTC

*** This bug has been marked as a duplicate of bug 287685 ***