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

Cached IMAP - How to access mail

Tags: None
(comma "," separated)
coogor
Registered Member
Posts
35
Karma
0
OS

Cached IMAP - How to access mail

Tue Jun 18, 2013 12:38 pm
Hi,

I'm in the uncomfortable situation that one Mailaccount was switched off. Although it was specified as 'cached / make available for offline use', KMail now refuses to display this mail (cant fetch in offline mode)

Questions:
- why is not all mail fetched when specified as 'make available for offline use'?
- why does it fetch older mails / subfolders etc again and again? No, the content of the mailbox is not changed from some other mailprogram.
- how can I get my mails back? where are they stored ?

Thx!
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Are you using anything < 4.11 beta 1? There was a bug that made KMail "forget" about the downloaded message bodies on offline IMAP. This has been fixed for 4.11 beta 1.

In any case, should you want to access the mail, you can find it in ~/.local/share/akonadi/file_db_data/ (1 file per each mail).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
coogor
Registered Member
Posts
35
Karma
0
OS
einar wrote:Are you using anything < 4.11 beta 1? There was a bug that made KMail "forget" about the downloaded message bodies on offline IMAP. This has been fixed for 4.11 beta 1.

no, I'm using 4.10.4
In any case, should you want to access the mail, you can find it in ~/.local/share/akonadi/file_db_data/ (1 file per each mail).

Some 1000 files with no further distinction by account makes it fairly hard to find a distinct mail.
More, it does not look that really *all* files of the cached IMAP Accounts are there! Some subfolders seem to be missing completely. And of course the account that I'm looking for.

Bug or feature?
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
It's not organized for folders, it's just the message body cached from the IMAP server. Can you check if in ~/.xsession-errors there is something like "file_XXX missing, trying to recover"? If so, it means you hit the "missing bodies bug", which is fixed in 4.11.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
coogor
Registered Member
Posts
35
Karma
0
OS
einar wrote:It's not organized for folders, it's just the message body cached from the IMAP server. Can you check if in ~/.xsession-errors there is something like "file_XXX missing, trying to recover"? If so, it means you hit the "missing bodies bug", which is fixed in 4.11.

No, there are no such messages.
Looks to me that if the files/message is not in the a.m. folder, AND the mail server is shut down in between, all messages are lost for that account, right?

More, even if an IMAP account is enabled for offline mode (which is the standard way for most road warriors with Laptops), not all mails in an account are sync'ed by default.

We can discuss if this is a bug or a design weakness - as a consequence, one should be extremely careful if using KMAIL with IMAP. If not to say, Kmail is unusable with IMAP, due to the risk of data loss :(

Are you aware if this is files as bug already?
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Looks to me that if the files/message is not in the a.m. folder, AND the mail server is shut down in between, all messages are lost for that account, right?


Not that I know. I think not. I'm thinking that you indeed experienced the "mail body not kept offline" bug. You should upgrade to 4.11 when it is released (end of August), if possible: on the first sync with 4.11, KMail will automatically retrieve all mail with missing bodies for offline use.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
coogor
Registered Member
Posts
35
Karma
0
OS
einar wrote:.... on the first sync with 4.11, KMail will automatically retrieve all mail with missing bodies for offline use.

The problem is - there will be no sync anymore, as this mail server was switched off.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: Cached IMAP - How to access mail

Fri Jun 21, 2013 12:22 pm
Then there's little you could do. This bug is already fixed in 4.11, but unfortunately if you lost the local body, you can't get it back without requesting it from the server.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
coogor
Registered Member
Posts
35
Karma
0
OS
If the bug is really that serious, I hope it is backported to 4.10 (as this KDE release is used in openSUSE 12.3)
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Unfortunately it's a really invasive change, so it can't be backported safely to the 4.10.x branch.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python


Bookmarks



Who is online

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