[Bug 290589] Opening a folder in kmail2 produces an error message

Dr. Christoph Pospiech pospiech at de.ibm.com
Sun Feb 12 17:28:22 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=290589





--- Comment #6 from Dr. Christoph Pospiech <pospiech de ibm com>  2012-02-12 17:28:22 ---
Hi,

I just posted the following to
http://forum.kde.org/viewtopic.php?f=215&t=99000&p=213395#p213395. As this
deals with fixing my corrupted akonadi data base, I am quoting this here for
convenience. Can anyone help me with the questions posted below ?
--- quote ---
Apparently, my only mail copy exists in the (akonadi ? nepomuk ?) data base,
which knows the folder the mail is stored in and uses a number that points to a
file name in ~/.local/share/akonadi/file_db_data/<this_number>_r0. So I need to
recreate the local folder structure (which currently is an almost empty mail
dir) from there. My plan would be to recreate the folder structure in a place
where neither kmail2 nor akonadi knows about, then stop akonadi-server and
switch the "Local Folders" to the new place. Sounds like a plan ? Well, I guess
I still need some advice on how to precisely do this. For instance, can I
create a new account in kmail->Settings->Configure kmail->Accounts->Receiving
and point it to an existing mail dir structure (without kmail2 or akonadi
getting confused about it) ?

Also, I can't recreate 19000 mails by hand, just using akonadiconsole->Browser
for inspecting and a bash, mkdir, cp and chmod for recreating. I have to write
a (C/C++) program or (perl ?) script for doing this. To this end I installed
libakonadi-dev and started to inspect the header files in
/usr/include/akonadi/private/ for an appropriate API that I could use. It seems
as these header files define the d-bus interface (and such). I rather need to
do SQL queries into the data base to retrieve the folder structure. Is
libnepomuk-perl the right thing to use ? Unfortunately,
/usr/lib/perl5/Nepomuk.pm is VERY short - only init() and normalize_classname()
- not the SQL querys I was looking for. Can anyone point me to some
documentation or get me started here ?

Thanks in advance !!
--- unquote ---
Christoph Pospiech

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list