diff options
author | Not Zed <NotZed@Ximian.com> | 2002-06-11 12:54:17 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-06-11 12:54:17 +0800 |
commit | ce2082b3ee0caa4b7f25dec1058fced57ebf32b4 (patch) | |
tree | 0745b4ef36417f5fe41bb489539d88d4d33a8d67 /mail/folder-info.c | |
parent | d5f7add041e2a73dcf1a74f1a52b3a9234167a26 (diff) | |
download | gsoc2013-evolution-ce2082b3ee0caa4b7f25dec1058fced57ebf32b4.tar.gz gsoc2013-evolution-ce2082b3ee0caa4b7f25dec1058fced57ebf32b4.tar.zst gsoc2013-evolution-ce2082b3ee0caa4b7f25dec1058fced57ebf32b4.zip |
If we dont get a folder, dont try and get details off it. Should get rid
2002-06-11 Not Zed <NotZed@Ximian.com>
* folder-info.c (do_get_info): If we dont get a folder, dont try
and get details off it. Should get rid of most of those annoying
summary warnings, but not the cause of them.
2002-06-06 Not Zed <NotZed@Ximian.com>
* message-list.c (mail_regen_list): Keep track of the regeneration
request in a list.
(regen_list_free): Remove the request from the regenreation list.
(message_list_set_folder): If there are any outstanding
regneration requests, cancel them.
(regen_list_regened): If we were cancelled, do nothing.
(regen_list_regen): If we were cancelled, shortcut processing.
This is all for #23571.
* message-list.c (regen_list_regen): Change the way we calculate
the hide deleted messages and tree view options. Do it based on a
search and uid's rather than a summary.
(regen_list_regened): Handle changes to tree storage.
(mail_regen_list): The tree is now stored between updates, so we
can update the tree structure incrementally. This blows out
memory use some however. We need an etree that uses this as its
model directly?
(message_list_destroy): Free the thread tree.
(message_list_set_folder): Clear the thread tree when changing
folder.
svn path=/trunk/; revision=17165
Diffstat (limited to 'mail/folder-info.c')
-rw-r--r-- | mail/folder-info.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/mail/folder-info.c b/mail/folder-info.c index bf4f11f227..1694458966 100644 --- a/mail/folder-info.c +++ b/mail/folder-info.c @@ -76,22 +76,12 @@ do_get_info (struct _mail_msg *mm) { struct _folder_info_msg *m = (struct _folder_info_msg *) mm; CamelFolder *folder; - CamelException *ex; - ex = camel_exception_new (); - folder = mail_tool_uri_to_folder (m->foldername, 0, ex); - if (camel_exception_is_set (ex)) { - g_warning ("Camel exception: %s", camel_exception_get_description (ex)); + folder = mail_tool_uri_to_folder (m->foldername, 0, NULL); + if (folder) { + m->read = camel_folder_get_message_count (folder); + m->unread = camel_folder_get_unread_message_count (folder); } - - camel_exception_free (ex); - - if (folder == NULL) { - g_warning ("Camel returned NULL for %s\n", m->foldername); - } - - m->read = camel_folder_get_message_count (folder); - m->unread = camel_folder_get_unread_message_count (folder); } static void |