GNOME Bugzilla – Bug 625579
Corruption of mbox file should be properly reported
Last modified: 2010-08-26 17:20:32 UTC
Symptoms same as in bug #550414 - I'm unable to remove any mail and I have thousands undeletable mails now. The only difference is that I use current git version branch gnome-2-30 up to commits: http://git.gnome.org/browse/evolution/commit/?h=gnome-2-30&id=a006e80af657f65c1f656c3a902cac583a189985 http://git.gnome.org/browse/evolution-data-server/commit/?h=gnome-2-30&id=f8176b0d1a3c9d18722e5beb28871728891b9efc I've tried to remove all cmeta, ibex.index, ibex.index.data and folders.db but this does not helps here. Probably related, before evolution starts to print "Summary and folder mismatch, even after a sync" I see the following messages: (evolution:15098): camel-WARNING **: Could not open converter for 'UNKNOWN' to 'UTF-8' charset (evolution:15098): camel-WARNING **: Could not open converter for 'unicode-1-1-utf-7' to 'UTF-8' charset (evolution:15098): camel-WARNING **: Could not open converter for 'unicode-1-1-utf-7' to 'UTF-8' charset (evolution:15098): camel-WARNING **: Could not open converter for 'gb2132' to 'UTF-8' charset (evolution:15098): camel-WARNING **: Could not open converter for 'gb2132' to 'UTF-8' charset (evolution:15098): camel-local-provider-WARNING **: Expected a From line here, didn't get it 3040 (evolution:15098): camel-local-provider-WARNING **: Expected a From line here, didn't get it 3040 evolution-mail-Message: Error occurred while existing dialogue active: Summary and folder mismatch, even after a sync (evolution:15098): camel-local-provider-WARNING **: Expected a From line here, didn't get it 3040 (evolution:15098): camel-local-provider-WARNING **: Expected a From line here, didn't get it 4092 (evolution:15098): camel-local-provider-WARNING **: Expected a From line here, didn't get it 3040 (evolution:15098): camel-local-provider-WARNING **: Expected a From line here, didn't get it 3040 (evolution:15098): camel-WARNING **: Ошибка при хранении «~/.evolution/mail/local/Inbox (mbox)»: Summary and folder mismatch, even after a sync Any ideas are more then welcome since currently I'm completely unable to use mailer.
Thanks for a bug report. Did this corruption happen before or after you updated to latest gnome-2-30 branch? And if after, are you sure you are using the right version? I'm only suggesting some easy-to-check things to try. With respect of "get it running again", try this: a) close evolution b) evolution --force-shutdown c) remove all Inbox.* files from ~/.evolution/mail/local/, only make sure you will *not* remove Inbox file itself, it's file with your emails d) remove ~/.evolution/mail/local/folders.db e) run evolution from console and see its output it should recreate all the index files during the start, with no errors like "Summary and folder mismatch, even after a sync". To be on the safe side, feel free to move, instead of remove, files mentioned above.
Thank you for your help Milan. I found reasons for this message: some of my mailboxes were corrupted by unknown reasons and this caused inability to expunge mail box. Since I have no ideas when this happened I guess the best solution for this bug will be to report corrupted mailbox.
It does that, as far as I know, by a less intrusive manner. When you see an error in the bottom status bar of evolution, then you can click the icon on the left of that message, which will show you a full error message, with more details.
I've reproduced this error (since I had backup) and no such message visible: peter@tablet ~/.evolution/mail/local $ LC_ALL=C evolution (evolution:5251): e-data-server-DEBUG: Loading categories from "/home/peter/.evolution/categories.xml" (evolution:5251): e-data-server-DEBUG: Loaded 46 categories (evolution:5251): camel-local-provider-WARNING **: Expected a From line here, didn't get it 3046 (evolution:5251): camel-WARNING **: Error storing '~/.evolution/mail/local/Inbox (mbox)': Summary and folder mismatch, even after a sync (evolution:5251): camel-WARNING **: Error storing '~/.evolution/mail/local/Sent (mbox)': Error storing '~/.evolution/mail/local/Inbox (mbox)': Summary and folder mismatch, even after a sync (evolution:5251): camel-local-provider-WARNING **: Expected a From line here, didn't get it 3046
Created attachment 166833 [details] Inbox This is minimal testcase to reproduce the problem.
Note, that the following message is not visible in evolution: (evolution:5251): camel-local-provider-WARNING **: Expected a From line here, didn't get it 3046 And I guess in case we have corrupted mbox evolution needs to report only corruption instead of "Summary and folder mismatch, even after a sync" since Summary is not a problem but a consequence.
I see. The first line should begin with From, but it begins with some garbage text, god knows how it got there. I see two places where "Summary and folder mismatch, even after a sync" should be replaced with a different message, as you suggest, probably something like: "MBOX file is corrupted, please fix it. (Expected a From line, but didn't get it.)" The source code is under a string freeze, thus I cannot do the change easily, and it also doesn't seem to be a critical issue, so I will do it in time for 2.33.1.
Created attachment 168624 [details] [review] eds patch for evolution-data-server; Just to not forget of this, not that it worth the patch itself.
Err, I misplaced freezes, I still can commit this without much effort (just announce it), so I did. Created commit 793c7ce in eds master (2.31.91+)