aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-thread.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-07-31 23:07:49 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-07-31 23:07:49 +0800
commit72092414aa9b150b03b69b26e216d2d057110f92 (patch)
tree7689661ce4288047e4bac43dc84d610a044eeacd /mail/message-thread.c
parent9ddabfee03542411d02851a1b1f144707ce32b82 (diff)
downloadgsoc2013-evolution-72092414aa9b150b03b69b26e216d2d057110f92.tar
gsoc2013-evolution-72092414aa9b150b03b69b26e216d2d057110f92.tar.gz
gsoc2013-evolution-72092414aa9b150b03b69b26e216d2d057110f92.tar.bz2
gsoc2013-evolution-72092414aa9b150b03b69b26e216d2d057110f92.tar.lz
gsoc2013-evolution-72092414aa9b150b03b69b26e216d2d057110f92.tar.xz
gsoc2013-evolution-72092414aa9b150b03b69b26e216d2d057110f92.tar.zst
gsoc2013-evolution-72092414aa9b150b03b69b26e216d2d057110f92.zip
Configurable vfolder sources, and a button to save a search
as a new vfolder. 2000-07-31 Not Zed <NotZed@HelixCode.com> * mail-vfolder.h: Header for vfolder functions. * folder-browser.c (mail_uri_to_folder): Use new scheme to open vfolders. (search_save): New button/function to save a search as a vfolder. * mail-vfolder.c (vfolder_edit): Made asynchronous. (vfolder_uri_to_folder): New function for loading vfolders and setting up their source folders. (vfolder_refresh): Change shell vfolder uri's to indirect references rather than the real vfolder uri. (vfolder_gui_add_rule): Add a rule with user confirmation. (vfolder_create_part): Get a new part by name, for creating rules in code. * message-thread.c (thread_messages): Check for uid lookup failure, which indicates an error in the folder or calling code. svn path=/trunk/; revision=4422
Diffstat (limited to 'mail/message-thread.c')
-rw-r--r--mail/message-thread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/message-thread.c b/mail/message-thread.c
index 3218d7ff28..c35e39f470 100644
--- a/mail/message-thread.c
+++ b/mail/message-thread.c
@@ -421,6 +421,11 @@ thread_messages(CamelFolder *folder, GPtrArray *uids)
const CamelMessageInfo *mi;
mi = camel_folder_get_message_info (folder, uids->pdata[i]);
+ if (mi == NULL) {
+ g_warning("Folder doesn't contain uid %s", uids->pdata[i]);
+ continue;
+ }
+
if (mi->message_id) {
d(printf("doing : %s\n", mi->message_id));
c = g_hash_table_lookup(id_table, mi->message_id);