diff options
author | Not Zed <NotZed@Ximian.com> | 2002-04-02 07:58:53 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-04-02 07:58:53 +0800 |
commit | 86c9aafb56e8e555871d5fe713aa33d65cf08fc4 (patch) | |
tree | 92092c5bb3ff03b9f9ca199ebd867fb97c055116 /camel/providers/imap/camel-imap-folder.c | |
parent | 785b748a243832932edb20e5fbc5f20efc2bbb00 (diff) | |
download | gsoc2013-evolution-86c9aafb56e8e555871d5fe713aa33d65cf08fc4.tar.gz gsoc2013-evolution-86c9aafb56e8e555871d5fe713aa33d65cf08fc4.tar.zst gsoc2013-evolution-86c9aafb56e8e555871d5fe713aa33d65cf08fc4.zip |
Temporarily disable indexing.
2002-04-02 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-folder.c
(camel_local_folder_construct): Temporarily disable indexing.
2002-03-28 Not Zed <NotZed@Ximian.com>
* camel-partition-table.c (camel_key_table_lookup): Change range
checking assert to a warning.
* providers/pop3/camel-pop3-folder.c (pop3_finalize): Make sure we
flush out all outstanding commands before finalising, stops being
finalised while outsanding requests are processed by the store
finalise.
(pop3_get_message): Instead of pre-fetching all messages, just
pre-fetch a maxiumum number at any one time, stops us running out
of cache fd's.
* providers/nntp/camel-nntp-folder.c (nntp_folder_init/finalise):
Setup priv data + locks, & free.
* providers/imap/camel-imap-folder.c (imap_rescan): Batch all
message_chagned events into a single folder_changed event
(otherwise updates can be >>> expensive, like >5 hours for 80K
messages changing!). Alternately it could use folder
freeze/unfreeze perhaps.
2002-03-27 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (imap_keepalive): Pass an
exception to called code so it behaves properly since it uses the
passed exception to check returns.
svn path=/trunk/; revision=16319
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 5db154a5fd..eb1fcd8be5 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -451,7 +451,8 @@ imap_rescan (CamelFolder *folder, int exists, CamelException *ex) CamelImapMessageInfo *iinfo; GArray *removed; gboolean ok; - + CamelFolderChangeInfo *changes = NULL; + CAMEL_IMAP_STORE_ASSERT_LOCKED (store, command_lock); imap_folder->need_rescan = FALSE; @@ -541,15 +542,20 @@ imap_rescan (CamelFolder *folder, int exists, CamelException *ex) info->flags = (info->flags | server_set) & ~server_cleared; iinfo->server_flags = new[i].flags; - - camel_object_trigger_event (CAMEL_OBJECT (folder), - "message_changed", - new[i].uid); + + if (changes == NULL) + changes = camel_folder_change_info_new(); + camel_folder_change_info_change_uid(changes, new[i].uid); } camel_folder_summary_info_free (folder->summary, info); g_free (new[i].uid); } + + if (changes) { + camel_object_trigger_event(CAMEL_OBJECT (folder), "folder_changed", changes); + camel_folder_change_info_free(changes); + } seq = i + 1; |