This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Where does kmail2 store imap mails?

Tags: None
(comma "," separated)
User avatar
iskendar
Registered Member
Posts
48
Karma
0
OS

Where does kmail2 store imap mails?

Tue Sep 25, 2012 8:56 am
Hi all,

Messed up a bit here. Our mail server has limited storage, so periodically we get these 'mailbox over its size limit' messages, and we have to go clean it out (different departments, it's a mess, I know). Anyway, we recently switched from POP3 to IMAP, so you can guess: out of habit, I delete it all, and suddenly find myself without a local mail archive. Four months of mail lost, yay.
Now, I'm trying to find out whether they backup their mails (fingers crossed), but in the meantime I'm also trying to find out whether I can do something on our end. Our sysadmin does daily backups of all local storage, so if I have access to the file(s) where kmail2 stores its IMAP email messages locally, I can get that back and extract and archive all of the lost mails. Some googling found me .local/share/akonadi/file_db_data/, is that correct? If so, how do I extract these mails? Turn off sync, close kmail, replace the db files, start kmail, copy all mails to local, re-establish sync. Something like that? Any hints are welcome.


iskendar, proud to be a member of KDE forums since 2008-Dec.
User avatar
iskendar
Registered Member
Posts
48
Karma
0
OS
Closing in:
Code: Select all
 .local/share/akonadi/db_data/akonadi/parttable.ibd
seems to contain some of the non-deleted mails, let's see what I can get from the backup. Still could use a hand with this though.


iskendar, proud to be a member of KDE forums since 2008-Dec.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
It may work, or may not, as proper backup is in place just for 4.10, as far as I can see.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
iskendar
Registered Member
Posts
48
Karma
0
OS
Well, it would help if someone could explain to me how kmail handles IMAP. When the IMAP account is synced, the mail text and attachments are stored somewhere on my pc, are they not? I'd be surprised if it was all kept in RAM.


iskendar, proud to be a member of KDE forums since 2008-Dec.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]