From 58e53223b1999d4b2207db0464f02e1cad9d4618 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 6 Aug 2001 21:55:09 +0000 Subject: Fix off-by-one error in cleaning up deleted messages at the end of the * providers/imap/camel-imap-folder.c (imap_rescan): Fix off-by-one error in cleaning up deleted messages at the end of the folder. Fixes bug #5585 and maybe others. svn path=/trunk/; revision=11712 --- camel/ChangeLog | 4 ++++ camel/providers/imap/camel-imap-folder.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 05df802ff0..728e0192c1 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,9 @@ 2001-08-06 Dan Winship + * providers/imap/camel-imap-folder.c (imap_rescan): Fix off-by-one + error in cleaning up deleted messages at the end of the folder. + Fixes bug #5585 and maybe others. + * providers/imap/camel-imap-store.c (get_folder_info_online): Do a refresh_info on the selected folder before looking at its unread count. Should fix bug #4944. diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 054fd7c6a0..451d0363e6 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -531,7 +531,7 @@ imap_rescan (CamelFolder *folder, int exists, CamelException *ex) * repeatedly add the same number to the removed array. * See RFC2060 7.4.1) */ - for (i = seq; i < summary_len; i++) + for (i = seq; i <= summary_len; i++) g_array_append_val (removed, seq); /* And finally update the summary. */ -- cgit v1.2.3