Bug 371228

Summary: enable remote search on IMAP servers
Product: [Applications] kmail2 Reporter: RJVB <rjvbertin>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: wishlist CC: arthur, dag, tore
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Attachments: a first draft for enabling remote search in the QuickSearch toolbar. WIP!

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. ***