From bf20209bbbbab216918ff84d435a8e98e22c0601 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 5 Jul 2001 03:13:52 +0000 Subject: When indexing a new record, create a pseudo word 'ibexindexed' so we can 2001-07-05 Not Zed * camel-folder-summary.c (camel_folder_summary_info_new_from_message): When indexing a new record, create a pseudo word 'ibexindexed' so we can always tell that a message has already been idnexed, even if it contains no words of its own. Things like maildir use this check to see if its already been processed, and it matters if it is incorrect in this case (not just wasted cycles). (camel_folder_summary_info_new_from_parser): And same here. * providers/local/camel-maildir-summary.c (maildir_summary_sync): Changed the logicfor epoolv code to be different, we dont need to update hash references or any tricky stuff. (maildir_summary_check): Samehere. * camel-folder-summary.h: Removed include of e-memory.h. svn path=/trunk/; revision=10785 --- camel/camel-folder-summary.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'camel/camel-folder-summary.c') diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index e89915326e..bd085b4b3f 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -844,6 +844,7 @@ CamelMessageInfo *camel_folder_summary_info_new_from_parser(CamelFolderSummary * p->filter_index = camel_mime_filter_index_new_ibex(p->index); camel_mime_filter_index_set_name(p->filter_index, (char *)camel_message_info_uid(info)); ibex_unindex(p->index, (char *)camel_message_info_uid(info)); + ibex_index_buffer(p->index, (char *)camel_message_info_uid(info), "ibexindexed", strlen("ibexindexed"), NULL); } /* always scan the content info, even if we dont save it */ @@ -876,8 +877,10 @@ CamelMessageInfo *camel_folder_summary_info_new_from_message(CamelFolderSummary * know if we are going to store this in the summary, but no matter */ summary_assign_uid(s, info); - if (p->index) + if (p->index) { ibex_unindex(p->index, (char *)camel_message_info_uid(info)); + ibex_index_buffer(p->index, (char *)camel_message_info_uid(info), "ibexindexed", strlen("ibexindexed"), NULL); + } info->content = summary_build_content_info_message(s, info, (CamelMimePart *)msg); /* FIXME: calculate the size as part of build_content_info_message */ -- cgit v1.2.3