Bug 317333

Summary: Filtering using Quick Search on folders changes folder selection in message list
Product: [Applications] kmail2 Reporter: Nathan Wolf <me>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: major CC: kdenis, knill, qqqqqqqqq9
Priority: NOR    
Version: 5.4.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nathan Wolf 2013-03-25 15:29:00 UTC
When I filter folders using Quick Search to find a specific folder to drag and drop a message into, the message list sometimes changes folders or even selects a second folder.  The work around is having to switch tabs when filtering in order to not deselect my message list.

Reproducible: Sometimes

Steps to Reproduce:
1. Select message I wish to move to local folder
2. Filter folders using quick search
3. Folder selected on message list changes to undesired folder
Actual Results:  
Problem occures 

Expected Results:  
Only the Folder list should be filtered using the quick search.  Folders should not be selected or un-selected at random.
Comment 1 qqqqqqqqq9 2014-07-07 18:54:15 UTC
I can confirm the problem with kontact 4.13.2. This bug makes sorting emails into an existing folder structure a rather tedious task.
Comment 2 Manny 2015-10-28 16:57:11 UTC
I can also confirm this problem, with kmail 4.14.1, current version with Debian jessie.
Entering text in the folder quick search field results in the current message
display being blanked out, making it impossible to move previously selected
messages. The workaround of opening a second tab is not so great,
though better than the alternatives.
Comment 3 Manny 2015-11-04 23:50:15 UTC
Followup:  A workaround that actually speeds things up is to select the messages
one wants to move or copy, then use the keyboard shortcut, e.g. 'm' to move the
messages. This opens up a folder window, and one can type in parts of
the target folder, just like for quick search. Once the right folder is selected,
a <cr> or 'click on ok' finishes the job. 

Two comments: I am still sorry that the normal folder quick search changes the messages
to <empty> once one types things in, and is otherwise less functional. Also,
on the 'old' kmail, after 'm' and getting the folder window, it is possible to type
paths across folder divides, e.g. 'adm/misc' to restrict the match (useful for me, since
I have many 'misc' subfolders. Also, it shows the subfolders of the matching folder
paths, which gives a lot more flexibility in filtering down the folder list. Unfortunately,
this functionality is no longer present in 4.14.1

Manny
Comment 4 Denis Kurz 2017-01-14 14:34:23 UTC
Still happens in 5.4.1. The message list is maintained until the folder filter string does not match the selected folder any more.

Example: select the folder "kde". The message list now displays messages from the "kde" folder. Type "kdx" into the folder quicksearch field. The message list is cleared when you hit the "x".

KMail still knows that "kde" was selected. In the above example, remove the "x" from the quicksearch field, and "kde" is selected again. This restores the message list, too.

Clearing the entire quicksearch field using Ctrl+Back, however, deselects the original folder.