0

I installed Kubuntu 20.04, coming from Kubuntu 14.04, and try to migrate my e-mails for kmail. Went with the following approach which is based on https://www.marnel.net/2018/08/migrating-kmail/ and https://docs.kde.org/trunk5/en/pim/kmail2/clean-start-after-a-failed-migration.html

  1. Copy the full contents of the mail folders ~/.local/share/.local-mail.directory and ~/.local/share/local-mail of the old installation to a second partition into the folders external_local-mail.directory and external_local-mail.
  2. Forget about all of Akonadi, Baloo or account settings.
  3. Start Kontact and make a fresh setup for email accounts and identities, plus contacts, calendar and whatever I use.
  4. Close Kontact completely (File > Quit, or Ctrl+Q) and stop Akonadi with akonadictl stop.
  5. Delete ~/.local/share/akonadi_maildir_resource_0, ~/.local/share/local-mail, ~/.local/share/akonadi, ~/.cache/akonadi ~/.config/akonadi, and ~/.config/specialmailcollectionsrc.
  6. Make a link at ~/.local/share/akonadi_maildir_resource_0 pointing to external_local-mail.directory and a link from ~/.local/share/local-mail pointing to external_local-mail.
  7. Start akonadi with 'akonadictrl start'.
  8. Start kontact.

I also tried the process but with not doing step 7, leaving it to kontact.

However, while it seems that kontact/kmail/akonadi is rebuilding the akonadi-database correctly, after a couple of seconds, I get the message

Kmail stoped with: KMail encountered a fatal error and will terminate now. The error was: Timeout trying to get lock.

and kontact quits.

Considering https://forum.kde.org/viewtopic.php?f=215&t=139044, the command qdbus | grep Mail gives me

$ qdbus | grep Mail
 org.freedesktop.Akonadi.MailDispatcherAgent
 org.freedesktop.Akonadi.NewMailNotifierAgent

I am aware of

but they don't provide help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.