diff options
author | Dan Winship <danw@src.gnome.org> | 2001-08-07 05:55:09 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-08-07 05:55:09 +0800 |
commit | 58e53223b1999d4b2207db0464f02e1cad9d4618 (patch) | |
tree | 8239671d19e5a159450ba48ef79b2ac865b616a1 /camel | |
parent | 739376df3bf27a0e95466ffb67f62a9711430716 (diff) | |
download | gsoc2013-evolution-58e53223b1999d4b2207db0464f02e1cad9d4618.tar.gz gsoc2013-evolution-58e53223b1999d4b2207db0464f02e1cad9d4618.tar.zst gsoc2013-evolution-58e53223b1999d4b2207db0464f02e1cad9d4618.zip |
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
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 4 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 2 |
2 files changed, 5 insertions, 1 deletions
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 <danw@ximian.com> + * 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. */ |