Bug 258927 - kmail2 does not work after kdepim update from 4.4.6 to 4.5.80
Summary: kmail2 does not work after kdepim update from 4.4.6 to 4.5.80
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 2.0.89
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-05 18:17 UTC by Johannes Obermayr
Modified: 2012-06-25 12:05 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.9.0


Attachments
konsole output (6.94 KB, text/plain)
2010-12-05 18:17 UTC, Johannes Obermayr
Details
Akonadi settings with a standard KMail-Maildir (85.66 KB, image/png)
2010-12-06 11:44 UTC, Hans-Rudi Denzler
Details
settings ... (688 bytes, text/plain)
2010-12-06 20:12 UTC, Johannes Obermayr
Details
my settings (369 bytes, text/plain)
2010-12-06 20:54 UTC, Hans-Rudi Denzler
Details
DAU (100.70 KB, image/png)
2010-12-07 21:29 UTC, Hans-Rudi Denzler
Details
example with kmail 1.13.5 (50.35 KB, image/png)
2011-01-11 21:05 UTC, Hans-Rudi Denzler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Obermayr 2010-12-05 18:17:49 UTC
Created attachment 54170 [details]
konsole output

Version:           2.0.89 (using Devel) 
OS:                Linux

On each start of kmail I receive following error message:

"KMail encountered a fatal error and will terminate now.
The error was:
Failed to fetch the resource collection."

Reproducible: Always
Comment 1 Hans-Rudi Denzler 2010-12-05 21:45:50 UTC
> grep akonadi .kde4/share/config/kmail*
...
.kde4/share/config/kmail2rc:[Resource akonadi_mixedmaildir_resource_0]
.kde4/share/config/kmail2rc:[Resource akonadi_pop3_resource_0]
...
> grep resource .kde4/share/config/*
...

Alt + F2: akonadi or
kmail > settings > accounts > receiving
Comment 2 Johannes Obermayr 2010-12-05 22:31:34 UTC
(In reply to comment #1)

What do you try to tell me?

I already did a 

'rm -f ~/.kde4/share/config/*kmail*'
   and
'rm -f ~/.kde4/share/config/*akonadi*'

in hope it fixes it.

And then I filed this bug report ...
Comment 3 Hans-Rudi Denzler 2010-12-06 11:44:13 UTC
Created attachment 54198 [details]
Akonadi settings with a standard KMail-Maildir
Comment 4 Johannes Obermayr 2010-12-06 20:12:21 UTC
Created attachment 54218 [details]
settings ...
Comment 5 Hans-Rudi Denzler 2010-12-06 20:54:34 UTC
Created attachment 54219 [details]
my settings

I deleted in Akonadi settings 'Local Folders, KMail Folders' and added 'KMail-Maildir'.
Comment 6 Hans-Rudi Denzler 2010-12-06 21:00:44 UTC
> cat specialmailcollectionsrc
[SpecialCollections]
DefaultResourceId=akonadi_maildir_resource_4

> cat akonadi_maildir_resource_4rc
[General]
Path[$e]=$HOME/.local/share/local-mail
Comment 7 Johannes Obermayr 2010-12-07 20:19:07 UTC
After some manual editing the *rc files I could make kmail2 'starting'.

'Starting' because there is a really stupid bug left:

▼ Lokale Ordner
│  ├ Entwürfe (empty)
│  ├ Postausgang (empty)
│  ├ Posteingang (empty)
│  ├ Versendete Nachrichten (empty)
│  ├ Vorlagen (empty)
│  ├ drafts (empty)
│  ├ inbox (all new incoming mails)
│  ├ outbox (empty)
│  ├ sent-mail (empty)
│  ├ templates (empty)
│  └ trash (empty)
▼ mail
   ├ drafts (empty)
   ▼ inbox (all old mails from kmail era - not in subfolders as in kmail era)
   │  ├ JohannesObermayr (empty)
   │  ├ kde-doc-english (empty)
   │  ├ [...] (all empty)
   │  └ l10n-kde4 (empty)
   ├ outbox (empty)
   ├ sent-mail (empty)
   ├ templates (empty)
   └ trash (empty)


I am wondering some parts are translated: bug 258926 ...

I can receive mails from my pop.gmx.net resource.

But I cannot send mails:
'There were problems trying to queue the message for sending: Message has invalid sent-mail folder.'

As you see there is much work left for a working automatically migration ...

Please do not call me 'DAU'. But a migration tool must be useable by DAU without manual adaptions ... ;-)
Comment 8 Johannes Obermayr 2010-12-07 20:22:23 UTC
Oh I forgot to mention. All my mails in 'sent-mail' folder seems to be lost :-(
Comment 9 Hans-Rudi Denzler 2010-12-07 21:29:58 UTC
Created attachment 54272 [details]
DAU

> i=sent-mail; echo $(($(dir .kde4/share/apps/kmail/mail/$i/cur/|wc -l)+$(dir .kde4/share/apps/kmail/mail/$i/new/|wc -l)-2))
> wc --help

If I check all folders i with Konsole all mail counts are correct.
I my 'experimental' phase I had some mails only in the akonadi data base. With kfind > content > containing text, I could locate those 7 missing mails. I moved them with kmail to 'Local Folders' and then back. Now mail counts are consistent.
Comment 10 Achim Bohnet 2011-01-11 18:57:18 UTC
I still get the same error with kmail 4.6 rc2 on Kubuntu 10.10  (Maverick)

Akonadi uses:
cat ~/.config/akonadi/agent_config_akonadi_maildir_resource_4
[Agent]
Online=true
Name=Local Folders


It's still not clear from the thread for me what the real problem is, and especially how to fix the settings to get

a) the migration tool accept the resource
b) finally fix the migration tool ;)
Comment 11 Hans-Rudi Denzler 2011-01-11 21:05:03 UTC
Created attachment 55886 [details]
example with kmail 1.13.5

openSUSE 11.2 (i586), 4.5.95 (4.6 RC2), KMail Version 1.13.5 (not kmail2):
.kde4/share/apps/kmail/mail/ is my maildir.
Going back from kmail2 to kmail1 I deleted the kmail2 resources. No errors anymore.
Comment 12 Unknown 2012-06-24 17:11:26 UTC
This bug is now fixed. Look at release KDE 4.9 and https://bugs.kde.org/show_bug.cgi?id=124111