aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2000-05-02 09:59:58 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-02 09:59:58 +0800
commitc65aa11c9bea4c474eef6129d82495de4784cbc5 (patch)
tree1e2a5f51ebd4702a1a5c79a2c7ef1b4f3f3a1350 /mail/message-list.c
parentdf0650ac1e84245d0812332f81a101d70d7e19ed (diff)
downloadgsoc2013-evolution-c65aa11c9bea4c474eef6129d82495de4784cbc5.tar.gz
gsoc2013-evolution-c65aa11c9bea4c474eef6129d82495de4784cbc5.tar.zst
gsoc2013-evolution-c65aa11c9bea4c474eef6129d82495de4784cbc5.zip
> (folder_browser_gui_init): Add an option meny to the search line.
> (create_option_menu): Build the option menu from a table. > (search_set): Build a search from another string whent he option > menu or text item is changed. 5 search options are defined so > far. svn path=/trunk/; revision=2742
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 7536946f44..d1a87201f8 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -63,8 +63,11 @@ CamelMessageInfo *get_message_info(MessageList *message_list, gint row)
char *uid;
uid = g_list_nth_data(message_list->matches, row);
- if (uid)
+ if (uid) {
info = camel_folder_summary_get_by_uid(message_list->folder, uid);
+ } else {
+ g_warning("trying to get data for nonexistant row %d", row);
+ }
} else {
GPtrArray *msg_info_array;
msg_info_array = camel_folder_summary_get_message_info
@@ -677,7 +680,6 @@ message_list_set_search (MessageList *message_list, const char *search)
if (search) {
CamelException ex;
- printf("Searching for: %s\n", search);
camel_exception_init (&ex);
message_list->matches = camel_folder_search_by_expression(message_list->folder, search, &ex);
}