[evolution-data-server] Bug #625579 - Corruption of mbox file should be properly reported
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #625579 - Corruption of mbox file should be properly reported
- Date: Thu, 26 Aug 2010 17:19:57 +0000 (UTC)
commit 793c7ce0023896a70fef61960ed0f79225c40eb5
Author: Milan Crha <mcrha redhat com>
Date: Thu Aug 26 19:18:52 2010 +0200
Bug #625579 - Corruption of mbox file should be properly reported
camel/providers/local/camel-mbox-summary.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c
index 39a15e5..0679c29 100644
--- a/camel/providers/local/camel-mbox-summary.c
+++ b/camel/providers/local/camel-mbox-summary.c
@@ -864,10 +864,9 @@ mbox_summary_sync_quick(CamelMboxSummary *mbs, gboolean expunge, CamelFolderChan
camel_mime_parser_seek(mp, info->frompos, SEEK_SET);
if (camel_mime_parser_step(mp, NULL, NULL) != CAMEL_MIME_PARSER_STATE_FROM) {
- g_warning("Expected a From line here, didn't get it");
g_set_error (
error, CAMEL_ERROR, CAMEL_ERROR_GENERIC,
- _("Summary and folder mismatch, even after a sync"));
+ _("MBOX file is corrupted, please fix it. (Expected a From line, but didn't get it.)"));
goto error;
}
@@ -1098,10 +1097,9 @@ camel_mbox_summary_sync_mbox(CamelMboxSummary *cls, guint32 flags, CamelFolderCh
camel_mime_parser_seek(mp, info->frompos, SEEK_SET);
if (camel_mime_parser_step(mp, &buffer, &len) != CAMEL_MIME_PARSER_STATE_FROM) {
- g_warning("Expected a From line here, didn't get it %d", (gint)camel_mime_parser_tell(mp));
g_set_error (
error, CAMEL_ERROR, CAMEL_ERROR_GENERIC,
- _("Summary and folder mismatch, even after a sync"));
+ _("MBOX file is corrupted, please fix it. (Expected a From line, but didn't get it.)"));
goto error;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]