Path to locally stored IMAP mail

Hi all,

this must have been asked many times, but I don’t seem to be able to find an answer:

I accidentally deleted mail from the inbox of an IMAP account in KMail. All has been synced, so the mail vanished from the IMAP server too. Backups of my local drive exist from which I should be able to restore the mail.

I do find all mail from the local maildir ressource. What I cannot find are the mails from IMAP sources locally stored for offline reading. Could anyone point me to where they are stored?

Thanks!

Right, got it solved:

Stopped Akonadi,
Replaced ~.local\share\akonadi with the very same from backups,
Stopped internet access to prevent syncing,
Started Akonadi (I rebooted, but that’s probably not necessary),
In Kmail, moved all restored IMAP mail to local mail to have it outside IMAP syncing,
Started internet access.

And to answer my original question: For offline reading, IMAP mail apparently is stored somewhere in ~.local\share\akonadi