aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.h
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-05-05 11:42:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-05 11:42:22 +0800
commit241a35c42fc0e5287b25bc4980415b0e1e61f422 (patch)
treecc6ea912ed38a20df474c48b06fc7c300d368aac /mail/message-list.h
parentccd8e1fedde7a29acb5e10ade7e69b9197e65dbe (diff)
downloadgsoc2013-evolution-241a35c42fc0e5287b25bc4980415b0e1e61f422.tar.gz
gsoc2013-evolution-241a35c42fc0e5287b25bc4980415b0e1e61f422.tar.zst
gsoc2013-evolution-241a35c42fc0e5287b25bc4980415b0e1e61f422.zip
Requires a camel-patch, about to come through ...
2000-05-04 NotZed <NotZed@HelixCode.com> * message-list.c (message_list_set_folder): Get the whole message summary right away. (folder_changed): And if we change too. (ml_row_count): Use the match count or summary table length as the row count. (get_message_info): Use array references to lookup message summary info. For the search result list, use the summary_search_cache to cache the info lookup. (message_list_init): Allocate the summary search cache. (message_list_destroy): Free the summary search cache and the summary table, if there is one to free. (message_list_set_search): Save the match count, and clear the summary search cache for reuse. (folder_changed): Re-retrieve the summary list if the folder has changed. (message_list_set_folder): Retrieve the summary list when opening the folder. svn path=/trunk/; revision=2807
Diffstat (limited to 'mail/message-list.h')
-rw-r--r--mail/message-list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/message-list.h b/mail/message-list.h
index 7c1e6bcb5b..f3d6d2fa7f 100644
--- a/mail/message-list.h
+++ b/mail/message-list.h
@@ -59,9 +59,13 @@ struct _MessageList {
CamelFolder *folder;
+ GPtrArray *summary_table; /* the summary of all messages */
+
char *search; /* search string */
/* FIXME: This should use a better format ... */
GList *matches; /* when a search has been performed ... */
+ int match_count;
+ GPtrArray *summary_search_cache; /* summary info cache for searches */
/* used by the idle-call to select a row */
int row_to_select;