aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-18 03:12:47 +0800
committerDan Winship <danw@src.gnome.org>2000-06-18 03:12:47 +0800
commit67936b0c77a2e534b381e80ff73675447d87ce48 (patch)
treeaa3b1320e1ad833149c1243ebb08bf5e90905f6b /camel/providers
parentcde9231ca7fd5a5abe84133a0e77f3bb36e98d39 (diff)
downloadgsoc2013-evolution-67936b0c77a2e534b381e80ff73675447d87ce48.tar.gz
gsoc2013-evolution-67936b0c77a2e534b381e80ff73675447d87ce48.tar.zst
gsoc2013-evolution-67936b0c77a2e534b381e80ff73675447d87ce48.zip
Add some debugging printfs when rebulding summary to help figure out why
* providers/mbox/camel-mbox-summary.c: Add some debugging printfs when rebulding summary to help figure out why people's summaries are always being rebuilt. svn path=/trunk/; revision=3614
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/mbox/camel-mbox-summary.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c
index 17af8b312b..40ad7f3a2b 100644
--- a/camel/providers/mbox/camel-mbox-summary.c
+++ b/camel/providers/mbox/camel-mbox-summary.c
@@ -372,6 +372,8 @@ camel_mbox_summary_load(CamelMboxSummary *mbs, int forceindex)
}
if (forceindex || camel_folder_summary_load(s) == -1) {
+ printf ("REBUILDING SUMMARY: %s\n",
+ forceindex ? "Summary non-existent." : "Summary load failed.");
camel_folder_summary_clear(s);
ret = summary_rebuild(mbs, 0);
} else {
@@ -395,12 +397,13 @@ camel_mbox_summary_load(CamelMboxSummary *mbs, int forceindex)
printf("Summary time and date match mbox\n");
if (minstart < st.st_size) {
/* FIXME: Only clear the messages and reindex from this point forward */
+ printf ("REBUILDING SUMMARY: Index file is incomplete.\n");
camel_folder_summary_clear(s);
ret = summary_rebuild(mbs, 0);
}
} else {
if (mbs->folder_size < st.st_size) {
- printf("Index is for a smaller mbox\n");
+ printf("REBUILDING SUMMARY: Summary is for a smaller mbox\n");
if (minstart < mbs->folder_size) {
/* FIXME: only make it rebuild as necessary */
camel_folder_summary_clear(s);
@@ -409,7 +412,10 @@ camel_mbox_summary_load(CamelMboxSummary *mbs, int forceindex)
ret = summary_rebuild(mbs, mbs->folder_size);
}
} else {
- printf("index is for a bigger mbox\n");
+ if (mbs->folder_size > st.st_size)
+ printf("REBUILDING_SUMMARY: Summary is for a bigger mbox\n");
+ else
+ printf("REBUILDING SUMMARY: Summary is for an older mbox\n");
camel_folder_summary_clear(s);
ret = summary_rebuild(mbs, 0);
}
n> * - Mark BROKEN on < 10.x amd64:Dmitry Marakasov2015-06-171-1/+5 * cleanup plistBaptiste Daroussin2014-12-211-1/+0 * Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla inTijl Coosemans2014-12-091-1/+1 * Update the default version of GCC in the Ports Collection from GCC 4.7.4Gerald Pfeifer2014-09-111-0/+1 * emulators/pearpc: Upgrade version 0.4 => 0.5 and stageJohn Marino2014-07-317-204/+47 * Rename all patches that contain '::' as a path separator, and useAdam Weinberger2014-07-301-0/+0 * Resetting maintainership on ports that have not been staged and without anyAntoine Brodin2014-07-031-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...Baptiste Daroussin2013-09-211-0/+1 * Remove support for the expired QT3 port.Roman Bogorodskiy2013-07-061-11/+0 * Convert emulators to new options frameworkBaptiste Daroussin2013-04-291-12/+7 * - Update devel/sdl12 to 1.2.15Marcus von Appen2012-02-181-1/+1 * - Unbreak by fixing nasm dependencyRoman Bogorodskiy2011-04-263-7/+21 * - Mark ports that have been broken for six month or more, or never compiled onPav Lucistnik2011-03-17