From a28ef9db3c65d1110f58d08a460fad88ad24c3ce Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 28 Jul 2000 02:02:51 +0000 Subject: Fixed my routine to only fetch new headers, my IDs were off by 1 on the 2000-07-27 Jeffrey Stedfast * providers/imap/camel-imap-folder.c (camel_imap_folder_changed): Fixed my routine to only fetch new headers, my IDs were off by 1 on the high end, so when it would fetch the last newly arrived message it would fail and end up fetching all of the summaries because of the corruption. svn path=/trunk/; revision=4404 --- camel/ChangeLog | 8 ++++++++ camel/providers/imap/camel-imap-folder.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 74b8ecbb4a..afea44e1fc 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,11 @@ +2000-07-27 Jeffrey Stedfast + + * providers/imap/camel-imap-folder.c (camel_imap_folder_changed): + Fixed my routine to only fetch new headers, my IDs were off by 1 + on the high end, so when it would fetch the last newly arrived + message it would fail and end up fetching all of the summaries + because of the corruption. + 2000-07-27 Jeffrey Stedfast * camel-url.c (camel_url_to_string): If the path doesn't begin diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 343d7e9f24..bdedcd57a4 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -1380,7 +1380,7 @@ camel_imap_folder_changed (CamelFolder *folder, gint recent, CamelException *ex) imap_folder->summary_hash = g_hash_table_new (g_str_hash, g_str_equal); } - last = imap_folder->summary->len + 1; + last = imap_folder->summary->len; for (i = last; i < last + recent; i++) { info = imap_get_message_info_internal (folder, i); -- cgit v1.2.3