KMail downloading old messages

I’m having BIG problems with KMail - it’s downloading old messages. Again.

This happens from time to time, then goes away for a month or five.

I’ve Googled the problem and tried what I’ve found but nothing works.

HELP!

This used to be a common problem of akonadi in the past. I haven’t had this since Plasma 6 (I clean installed Fedora 40). Most likely, upstream changing the default db to sqlite solved this.

Many things cause this issue, most often

  • corruption of the akonadi database
  • account suddenly stops working, wants password, downloads all mail again
  • kmail downloading all mail up to 1,000,000%

Could you provide your ~/.config/akonadi/akonadiserverrc and KDE System Info?

Fedora 42 - fully up-to-date

[Debug]
Tracer=null

[%General]
Driver=QMYSQL

[QMYSQL]
DataDir=/home/kmg/.local/share/akonadi/db_data
Host=
Name=akonadi
Options=“UNIX_SOCKET=/run/user/1000/akonadi/mysql.socket”
ServerPath=/usr/sbin/mysqld
StartServer=true

Given nothing seems wrong with your configuration, could you

  • Report this issue to the Fedora KDE SIG? (They have chosen to ship MySQL as default database for akonadi)
  • Try to run akonadictl fsck in a terminal?
  • Check your incoming account settings, especially how frequently you’re polling mail? (I’m suspecting it’s an old issue, where update interval is set to 5 minutes, akonadi can’t sync full mailbox within 5 minutes, then tries to sync over and over again. You can also try setting the update interval to 60 minutes and see if the issue is resolved)