Bug 391286 - inbox syncs again and again, new msgs listed multiple times when kmail bogofilter filter rules are enabled on laptop & desktop
Summary: inbox syncs again and again, new msgs listed multiple times when kmail bogofi...
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Filter Agent (show other bugs)
Version: 5.7.2
Platform: Other Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-02 10:57 UTC by Achim Bohnet
Modified: 2022-08-27 00:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
xsession error of the sync loop (22.70 KB, text/x-log)
2018-03-02 11:39 UTC, Achim Bohnet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Bohnet 2018-03-02 10:57:44 UTC
With Neon User on my laptop and desktop: kmail accesses via imap and dovecot server the same account. Both kmail instances have only the 4 bogofilter rules generated by the  antispam wizard.  

When both kmail instances are running and I receive a new e-mail,  the same e-mail is listed multiple times in the msg listview and akonadi scans the inbox again and again.  Each scan ~ 4 sec and CPU fan kicks in because akonadi consumes lot of CPU.   The scan loop stops after more than one or two duzend scans (guess).  The mesg list view shows 2 times the same unread msg.  This happens on both the laptop and desktop in parallel.

After each scan the msg switches most of the time between listed twice and four time.  Sometimes it's listed 3 times.  When  it eventually after 1 -2 minutes ends I see the new msg listed twice.

At the same time the unread mail count changes again and again in kmail/inbox,
thunderbold, K9-Mailon Android and Apple Mail and I can enjoy lots of notification sounds  ;-)

When I disable the all rules (=4 bogofilter rules) on the laptop.  I don't see the duplicates but nevertheless my laptop does one complete sync the inbox as shown in the msgbox in the lower right of kmail which takes ~ 4 sec.


I've seen this in the past already (> year) but most of the time I used
bogofilter filter rules only on the desktop host.

Achim
Comment 1 Achim Bohnet 2018-03-02 11:21:42 UTC
I can end the endless loop, when I mark all listed entries of the msg as unread
Comment 2 Achim Bohnet 2018-03-02 11:39:52 UTC
Created attachment 111132 [details]
xsession error of the sync loop

This time the sync was ended by 2 new msgs arriving, tickering akonadi into a full reload of the inbox  (~ 4 min instead of ~ 4 sec for the normal syncing)

The 'BAD Error in IMAP' occur when the regular backgroud check of the folders of my T-Online account happens. (fraction of sec for each folder).
Comment 3 Justin 2022-08-27 00:54:52 UTC
This affects me also.
Uninstalling Bogofilter stopped the duplicate behaviour in Kmail - and all other devices. eg Fariemail on Android.