Bug 346100 - search window displays results from all folders even when I tell it to search in just one
Summary: search window displays results from all folders even when I tell it to search...
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: search (show other bugs)
Version: 4.14.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-04-12 11:43 UTC by Martin Steigerwald
Modified: 2018-10-27 04:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Steigerwald 2015-04-12 11:43:16 UTC
As I tried to reproduce bug #324189 I found that I will get search results instead of getting non as reported there after setting it to search in all folders and repeating search by clicking on "search" several times. But then it doesn´t limit the search results when I tell it to use just one folder to results in that folder anymore. 

Reproducible: Always

Steps to Reproduce:
1. Search a a word in subject of mail in all folders in search window
2. Make sure KMail displays some results from several folders. 
3. Limit search to one of them
4. Click search again.

Actual Results:  
Still displays results from mutiple folders.

Expected Results:  
Only displays results from the folder selected.

This is with KDEPIM 4.14 and Akonadi 1.13 from their respective branches as about one week ago.
Comment 1 Denis Kurz 2017-01-13 15:11:03 UTC
Martin, did you try to search in a specific folder only, without searching globally before that? What you found might be the "cannot edit searches" bug.

Please try the following:
1. Restart kontact and akonadi (alternatively, do it after a fresh boot)
2. Start kmail, and immediately:
3. Search for messages containing some string in the subject (to be extra sure not to hit other search-related bugs); limit this initial search to a specific folder. Please be aware of the checkbox to control whether to look in subfolders of the specified folder.
4. Take note of the search results
5. Edit the search to a global one that is not restricted to a specific folder.
6. Take note of the search results

From the bugs I saw so far, the results from 4 and 6 should be the same. However, it has nothing to do with restricting the search to some folders. It's just that modifying existing searches seems to be broken.

Can you please try to confirm/reject my theory with a Framework-based (5.0 or later) version of KMail?

Note to self: If I'm right, Bug 366682 and Bug 352472 are probably duplicates of this one.
Comment 2 Andrew Crouthamel 2018-09-26 22:25:22 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-10-27 04:18:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!