Bug 467607

Summary: Filtered E-Mails appear twice
Product: [Applications] kmail2 Reporter: Attila <bugs.kde.attila>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: grave    
Priority: NOR    
Version: 5.22.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Attila 2023-03-20 14:27:41 UTC
SUMMARY

New E-Mails which are filtered appear twice when they moved to the specified folder.
If I click on the first one, KMail displays the content of the E-Mail correctly.
If I click on the second one, KMail does not display any content, i.e. I see an empty E-Mail.

STEPS TO REPRODUCE
1. Launch KMail
2. Add a new Subfolder
3. Set up a rule for the filter
4. Check the new E-Mails in the subfolder

OBSERVED RESULT
Some of the new E-Mails appear twice.

EXPECTED RESULT
New E-Mails which are filtered should appear once.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.1.18-200.fc37.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4770T CPU @ 2.50GHz

ADDITIONAL INFORMATION
I use POP3 to retrieve E-Mails. The filter is super slow. It takes several minutes to filter 100 new E-Mails. The rules are very simple. It is advisable not to use Kmail while the E-Mails are being filtered to avoid errors.