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

[Solved]problems with kmail2 and kontact after 4.6.4 upgrade

Tags: None
(comma "," separated)
sedo_5
Registered Member
Posts
23
Karma
0
OS
Hi everyone!
I'm facing a problem with the new version of kdepim, after the upgrade to kde 4.6.4 , which contains the new kmail2!
I've read a lot of posts here and in other forums (i mainly use sabayon linux) but still haven't found anything resolutive...
Long story short, here's my problem.
After the upgrade the migrating advice pops up, everything seems to go straight, migrating successfully completes...but when i launch kontact (or also kmail standalone) it returns me an error and it shuts down.
Trying to launch it from the terminal gives me:
Code: Select all
kmail2(17625)/kdeui (kdelibs:( Attempt to use QAction "" with KXMLGUIFactory!
kmail2(17625)/kdeui (kdelibs:( Attempt to use QAction "" with KXMLGUIFactory!
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"
kmail2(17625) MailCommon::Kernel::emergencyExit: "L'esecuzione di KMail verrà terminata a causa di un problema.
L'errore è:
Recupero della collezione di risorse non riuscito."
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"
kmail2(17625) MailCommon::Kernel::emergencyExit: "L'esecuzione di KMail verrà terminata a causa di un problema.
L'errore è:
Recupero della collezione di risorse non riuscito."
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"
kmail2(17625) MailCommon::Kernel::emergencyExit: "L'esecuzione di KMail verrà terminata a causa di un problema.
L'errore è:
Recupero della collezione di risorse non riuscito."
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"
kmail2(17625) MailCommon::Kernel::emergencyExit: "L'esecuzione di KMail verrà terminata a causa di un problema.
L'errore è:
Recupero della collezione di risorse non riuscito."
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"
kmail2(17625) MailCommon::Kernel::emergencyExit: "L'esecuzione di KMail verrà terminata a causa di un problema.
L'errore è:
Recupero della collezione di risorse non riuscito."
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"                                                                                   
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJob::slotResult: Failed SpecialCollectionsRequestJob::slotResult "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"                                                                                                           
kmail2(17625) MailCommon::Kernel::emergencyExit: "L'esecuzione di KMail verrà terminata a causa di un problema.                                         
L'errore è:                                                                                                                                             
Recupero della collezione di risorse non riuscito."
kmail2(17625)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::resourceScanResult: Failed to request resource "akonadi_maildir_resource_0" : "Errore sconosciuto. (Recupero della collezione di risorse non riuscito.)"

(sorry but my sistem is set to italian language; the main error translates so: "Unable to recovery resources collection")

Searching for similar issues, i've found a useful trick (link: https://bugs.kde.org/show_bug.cgi?id=259355) and i finally managed to get kontact (and kmail2) working and managed to get rid of that error.
Anyway, things don't seem to go the right way...
As suggested from the link above, i've installed akonady console and i've set the maildir folder in akonadi's "local folders" manually, giving the path of my kmail v1 mail folder (of course i made a backup before). This led to the conversion of all the mail files. Unfortunately, now i have an unique inbox folder, practically i've lost all of my settings (filters, spam filters, folders, now all the mails are packed inside the inbox folder)...obviously i don't have the time to edit all the settings from scratch! Another thing i noticed is that now the mail files are in the "old" kmail folder (that's because i selected that as my mail directory in akonadi console), and the kmail2 folder is empty!
But it's not enough: now i have problems with all of kontact programs (i constantly use kaddressbook, korganize (diary, things to do, calendar...), knotes, kjots, akregator. Here's a summary:
- akregator,knotes and kaddressbook seem to work flawlessly
- i've lost all of my calendar (and related things: things to do, diary) items, and now the holydays (important dates that kontact gives you as default) are in a strange language (german i suppose, but the only localization language i've set in kde are italian and english!)
- i've lost all of my notes in kjots

Now, i know that probably these datas are not lost, for sure they are stored in some folders under ~/.kde4/share/apps or similar, and anyway i have some backups... i think these problems are caused by akonadi settings.
Infact, under akonadi's resources, i see lots of configurations that i've never clearly understood completely...

Anyway: tha main problem remains the use of kmail: i want it to behave exactly as kmail 1 did, with all its previous settings!

Can you give me some help, please?

Thanks you all in advance!
Cheers

renzo

Last edited by sedo_5 on Thu Aug 25, 2011 9:52 am, edited 1 time in total.
sedo_5
Registered Member
Posts
23
Karma
0
OS
nobody with a similar problem?
bump

renzo :(
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
You could try a backend handler (resource) of type "Kmail Folders" on your KMail directory instead of the local folders thing.

That one was specifically created for supporting the folder structure of KMail1

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
sedo_5
Registered Member
Posts
23
Karma
0
OS
Thanks for your answer!

I tried this kmail resource, and things have started to get better. Now i have all my old emails in the main kmail2 tree, but stored in another subfolder of its (looking like i've imported these folders). Now i should just move the folders where i desire (i hope).
But...the kmail2 folder (under .kde/share/apps) remains empty! does this mean that all new messages will continue to be stored in kmail1 folder? i can't understand this! aren't supposed to be saved in the new kmail2 folder? if so...am i missing some setting?
by the way, about the other resource "local folder" (the one you suggested me NOT to use): it comes back every time i try to remove it (and it points to /home/user/.local/share/local-mail , which of course is empty too!)

Anyway, the main problem remains: i've lost all of my old kmail's settings (even filters and bogofilters)...how can i restore them? do i have to move some settings file in the new kmail2 folder?

Just for curiosity: in so doing (using the kmail dir resource etc, as described above) i had not to wait some time in migrations, as a lot of users described in other posts...does this mean that i just imported some mails but it didn't proceed with the migration? (a similar question would be: does migration implies changes in the mbox file itself?)

After solving these doubts on kmail2, i'll just have to solve problems with kjots...it's blowing my mind (for sure i'm neglecting something about the difference between two akonadi resources named 'notes' and 'akonotes'...).
Anyway i solved every problem regarding the other programs :)

I would thank you all a lot if you could just give me some hints about the problems i've written above! o)

Thanks again!
Renzo

update: i realize i cannot send emails! it says thet there's not a proper folder for the sending queue.
sedo_5
Registered Member
Posts
23
Karma
0
OS
Sorry for the late answer!
I want to write about how i solved my problems (most of them..)

The easiest way, in my opinion, is to import kmail1 "archives"; the "kmail folder" resource backend (cited before) is not such a solution, in fact if you try to move or copy some of those messages (in the sub-tree created by the backend in your kmail2 tree, pointing to the old kmail1 folder) in the "normal" kmail2 folder tree, you will result with an error saying that this is unreadable (something like "the folder is not an email folder", maybe because the old kmail1 folder is not in the "maildir" format used now on kmail2).
Then the solution is: try to use a kde system prior than 4.6.4 (with kmail1) and copy as usual your old kmail1 backup folder in it. Now that you have all your old emails, select "Archive folder" on each folder of the mail tree; then kmail will create a zipped archive of that folder. Than on the system with kmail2 do File>import and import every zipped archive. After some seconds you will have all your emails back, and akonadi starts to read them all for indexing.
Just note I made the upgrade to kde 4.7.0 , and some other problems disappeared (for example, now i magically have all my old settings and preferencies and filters on! which is one of the most important things for me). So now I can say that my kmail2 is usable at least.

Now the only two doubts are:
- kmail2 has a bug, detecting a conflict on most of the incoming email, without any reason...and sometimes it stucks and i have to launch it again: i've read a kde bug list and I think that this problem is going to be solved in the next version (so let's say I will wait)
- where the hell does kmail2 store its emails? it must be a maildir folder type, right? (so with "cur", "tmp" and "new" subfolders, but under ~/.local/share/local-mail there is NOTHING!!!), does it maybe store them under the akonadi database (so not a normal and explorable folder as before)??? if so, i imagine i shall just make an akonadi backup instead of a normal folder backup, in case I should backup my emails, and it also means that I can delete my old kmail1 folder?!...an help on this would be appreciated! :)

I'm putting "solved" in this thread, but it would be nice just to have confirm on my last two doubts, if possible :)

Thanks everyone!
Bye, Renzo
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Akonadi's storage location depends on the location your "Local folders" resource is pointed at. This is usually ~/.local/share/local-mail - but doesn't seem to be in your case.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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