From 6bd5d23da7d5676989cd40ce848c4b8bbb6f7f3e Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 17 Jun 2002 19:58:22 +0000 Subject: New convenience function to get a cached normalised string. 2002-06-17 Jeffrey Stedfast * message-list.c (get_normalised_string): New convenience function to get a cached normalised string. (subject_compare): Removed, as we strip Re:'s when normalising the subject strings now. (ml_tree_value_at): Added support for the normalised columns (used for a sorting optimisation). (message_list_init): Initialise normalised_hash. (message_list_destroy): Destroy normalised_hash. (message_list_create_extras): Removed subject_compare. (main_folder_changed): De-cache normalised strings for any removed uids. svn path=/trunk/; revision=17213 --- mail/message-list.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mail/message-list.h') diff --git a/mail/message-list.h b/mail/message-list.h index 3cc412f6cc..dd57d69d1d 100644 --- a/mail/message-list.h +++ b/mail/message-list.h @@ -30,7 +30,12 @@ enum { COL_FOLLOWUP_FLAG, COL_FOLLOWUP_DUE_BY, COL_LOCATION, /* vfolder location? */ - + + /* normalised strings */ + COL_FROM_NORM, + COL_SUBJECT_NORM, + COL_TO_NORM, + COL_LAST, /* Invisible columns */ @@ -60,7 +65,9 @@ struct _MessageList { CamelFolder *folder; GHashTable *uid_nodemap; /* uid (from info) -> tree node mapping */ - + + GHashTable *normalised_hash; + /* UID's to hide. Keys in the mempool */ /* IMPORTANT: You MUST have obtained the hide lock, to operate on this data */ GHashTable *hidden; -- cgit