I use KDE 4.8.4 from Gentoo. My akonadi is set up to use an external MYSQL server. Everything works fine after a fresh login to the kde session. When I leave it for a few hours inactive and then start, for example, kmail2, it shows plenty of errors like 'Unable to list items' or 'Error while trying to get the local inbox folder' and is unable to check emails on my IMAP accounts. The reason for this problem is nicely described in the following comment: https://bugs.kde.org/show_bug.cgi?id=273612#c7 I think that the solution proposed in the referred comment, i.e., adding Options="MYSQL_OPT_RECONNECT=1" by default to QMYSQL section of .config/akonadi/akonadiserverrc could be good enough, since many services in KDE depend on aconadi now. Reproducible: Always Steps to Reproduce: 1. Login to KDE Session. 2. Leave it for several hours. 3. Try to use, e.g. KMail. Actual Results: KMail shows plenty of errors like 'Unable to list items' or 'Error while trying to get the local inbox folder' and is unable to check emails on IMAP accounts or list local folders. Expected Results: KMail should work normally.
This has been fixed in current git and will be available in Akonadi 1.10.3. The server is sending dummy queries to MySQL to keep the connection alive. *** This bug has been marked as a duplicate of bug 278462 ***