After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 625579 - Corruption of mbox file should be properly reported
Corruption of mbox file should be properly reported
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.30.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2010-07-29 12:45 UTC by Peter
Modified: 2010-08-26 17:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Inbox (8.13 KB, text/plain)
2010-07-30 13:17 UTC, Peter
  Details
eds patch (1.32 KB, patch)
2010-08-24 09:22 UTC, Milan Crha
committed Details | Review

Description Peter 2010-07-29 12:45:30 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.
Comment 1 Milan Crha 2010-07-30 11:14:50 UTC
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.
Comment 2 Peter 2010-07-30 12:33:27 UTC
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.
Comment 3 Milan Crha 2010-07-30 12:46:11 UTC
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.
Comment 4 Peter 2010-07-30 13:16:49 UTC
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
Comment 5 Peter 2010-07-30 13:17:41 UTC
Created attachment 166833 [details]
Inbox

This is minimal testcase to reproduce the problem.
Comment 6 Peter 2010-07-30 13:23:28 UTC
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.
Comment 7 Milan Crha 2010-08-24 09:18:35 UTC
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.
Comment 8 Milan Crha 2010-08-24 09:22:08 UTC
Created attachment 168624 [details] [review]
eds patch

for evolution-data-server;

Just to not forget of this, not that it worth the patch itself.
Comment 9 Milan Crha 2010-08-26 17:20:20 UTC
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+)