Bug 415056

Summary: Kmail pretends to be done retrieving emails
Product: [Applications] kmail2 Reporter: Attila <bugs.kde.attila>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.15.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Attila 2019-12-11 15:10:38 UTC
SUMMARY
Kmail pretends to be done retrieving emails, the progress bar is at 100% and disappears. When I click on emails kmail can't display them.

I can see in the message bar the following:
Item query returned empty result set.

All the emails on which I have clicked are lost.
Approximately 30 seconds later Kmail shows me suddenly 2 or 3 times more new emails which are correct sorted to my folders (I have set up a couple of filters).

STEPS TO REPRODUCE
1. Launch Kmail
2. Retrieve emails
3. Don't wait and click on some of the emails before Kmail is going to sort them to the right folders.

OBSERVED RESULT
Kmail must not pretend to be done when it is not done.

EXPECTED RESULT
Kmail must finish the job before the progressbar is at 100% and disappears.

SOFTWARE/OS VERSIONS
Operating System: Fedora 31
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.64.0
Qt Version: 5.12.5
Kernel Version: 5.3.15-300.fc31.x86_64
OS Type: 64-bit


ADDITIONAL INFORMATION
Comment 1 Attila 2019-12-12 09:48:15 UTC
Hi Christophe,

sorry for being polite and asking, but why do you think that the severity for this bug should be set to normal instead of critical? After all I lose a lot of important data day by day. I think this is critical enough.
Comment 2 Christophe Marin 2019-12-12 11:35:30 UTC
which account type is it? pop3, imap...

Did you create filters?
Comment 3 Attila 2019-12-12 21:19:56 UTC
(In reply to Christophe Giboudeaux from comment #2)
> which account type is it? pop3, imap...
It is pop3

> Did you create filters?
Yes I did
Comment 4 Attila 2020-05-28 06:36:25 UTC
Hi,

I have upgraded to Fedora 32. The version of KMail is 5.13.2 (19.12.2).
I can reproduce this bug.
Do you need some additional information? How can I help to fix this bug?
Comment 5 Attila 2021-03-15 07:15:52 UTC
I get the message "Item query returned empty result set" on Fedora 33 as well.
This happens when I have got a plenty of new emails in my inbox and I delete them quick email by email.

KMail version 5.15.3 (20.08.3).

Operating System: Fedora 33
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.10.16-200.fc33.x86_64
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4770T CPU @ 2.50GHz
Memory: 7.2 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 6 Attila 2021-03-15 08:29:40 UTC
Could this be caused by "baloo_file_extractor"? When I read very large emails, I notice that the process "baloo_file_extractor" eats up to 1.5 GB of RAM.