Bug 371228 - enable remote search on IMAP servers
Summary: enable remote search on IMAP servers
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: unspecified
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 403855 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-19 16:25 UTC by RJVB
Modified: 2019-02-03 20:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
a first draft for enabling remote search in the QuickSearch toolbar. WIP! (8.94 KB, patch)
2016-10-19 16:27 UTC, RJVB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RJVB 2016-10-19 16:25:55 UTC
Dan suggested on the kdepim-users ML that someone might want to submit a wishticket for a feature to allow remote search on IMAP servers, all the more since support for the feature is already implemented but dormant.

In his words: 

> maybe we could add a checkbox to the "Quick Search" to enable it and allow 
> full-text search in a specific folder even if the bodies are not available
> locally. Would not work for the "Search" dialog though.

I've taken the bait, so here's the wish ticket :)



Reproducible: Always

Steps to Reproduce:
Do a search in an IMAP folder which isn't configured to download all message bodies.

Actual Results:  
Messages not available locally are skipped

Expected Results:  
Those messages could be included on user request

I've started to implement the feature. As I'm still using 4.14 that's the code base I'm using, but I suppose that porting should be relatively straightforward.

The available support I've been able to find is part of Akonadi::SearchCreateJob, so that's what I've tried to use. Currently I'm getting a "cannot create persistent search" error, and I'm still stuck at how to get the actual results from the returned collection, but I hope it's a start.

I'm not entirely sure why remote search couldn't be part of the "Search" dialog, given that the underlying code uses classes that support remote search??
Comment 1 RJVB 2016-10-19 16:27:24 UTC
Created attachment 101647 [details]
a first draft for enabling remote search in the QuickSearch toolbar. WIP!
Comment 2 Christophe Marin 2019-02-03 20:32:17 UTC
*** Bug 403855 has been marked as a duplicate of this bug. ***