From df0650ac1e84245d0812332f81a101d70d7e19ed Mon Sep 17 00:00:00 2001 From: Michael Zucci Date: Tue, 2 May 2000 01:57:55 +0000 Subject: > (func_header_contains): Debug out some search stuff. > (index_folder): Make sure we index using a decimal uid, since > thats what everything else indexes off (oops). > Upped SUMMARY_VERSION as a result. > > * camel-folder.h: Removed CamelSearchFunc. svn path=/trunk/; revision=2741 --- camel/providers/mbox/camel-mbox-search.c | 2 +- camel/providers/mbox/camel-mbox-summary.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'camel/providers/mbox') diff --git a/camel/providers/mbox/camel-mbox-search.c b/camel/providers/mbox/camel-mbox-search.c index 094533edbd..107984d75b 100644 --- a/camel/providers/mbox/camel-mbox-search.c +++ b/camel/providers/mbox/camel-mbox-search.c @@ -240,7 +240,7 @@ func_header_contains(struct _ESExp *f, int argc, struct _ESExpResult **argv, voi for (i=1;itype == ESEXP_RES_STRING && strstr(header, argv[i]->value.string)) { - printf("%s got a match with %s of %s\n", ctx->message_current->info.uid, header, argv[i]->value.string); + r(printf("%s got a match with %s of %s\n", ctx->message_current->info.uid, header, argv[i]->value.string)); truth = TRUE; break; } diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c index 4d10709fcd..b4b341fd40 100644 --- a/camel/providers/mbox/camel-mbox-summary.c +++ b/camel/providers/mbox/camel-mbox-summary.c @@ -47,7 +47,7 @@ #define d(x) -#define CAMEL_MBOX_SUMMARY_VERSION 2 +#define CAMEL_MBOX_SUMMARY_VERSION 3 static int safe_write(int fd, char *buffer, size_t towrite); static void camel_mbox_summary_add(CamelMboxSummary *s, CamelMboxMessageInfo *info); @@ -807,7 +807,7 @@ static int index_folder(CamelMboxSummary *s, int startoffset) } /* setup index name for this uid */ - sprintf(name, "%x", newuid); + sprintf(name, "%u", newuid); camel_mime_filter_index_set_name(mfi, name); /* remove all references to this name from the index */ if (s->index) -- cgit v1.2.3