diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-06-18 03:58:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-06-18 03:58:22 +0800 |
commit | 6bd5d23da7d5676989cd40ce848c4b8bbb6f7f3e (patch) | |
tree | 247bf2fe7ba662a6b29c7ab68e92a22c47b2ac78 /mail/message-list.h | |
parent | c1d568de74f928d28a8cf0f9f02028b69e068f80 (diff) | |
download | gsoc2013-evolution-6bd5d23da7d5676989cd40ce848c4b8bbb6f7f3e.tar.gz gsoc2013-evolution-6bd5d23da7d5676989cd40ce848c4b8bbb6f7f3e.tar.zst gsoc2013-evolution-6bd5d23da7d5676989cd40ce848c4b8bbb6f7f3e.zip |
New convenience function to get a cached normalised string.
2002-06-17 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'mail/message-list.h')
-rw-r--r-- | mail/message-list.h | 11 |
1 files changed, 9 insertions, 2 deletions
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; |