aboutsummaryrefslogtreecommitdiff
path: root/libsylph/imap.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-12-04 04:24:33 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-12-04 04:24:33 +0000
commit3d57ec9b7ae57f6ce27116300f2a71adadead0d0 (patch)
tree7ba9a3f844d892cbea3c04b7cbd6fd4a3f1bc708 /libsylph/imap.c
parenta07a513dcca1b9a8a90499658a27a528660ade40 (diff)
fixed a warning when getting uncached messages in IMAP4.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1388 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r--libsylph/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c
index 76f00650..868b5e2b 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -2331,7 +2331,7 @@ static GSList *imap_get_uncached_messages(IMAPSession *session,
str = g_string_new(NULL);
for (;;) {
- if (exists > 0) {
+ if (exists > 0 && count <= exists) {
g_get_current_time(&tv_cur);
if (tv_cur.tv_sec > tv_prev.tv_sec ||
tv_cur.tv_usec - tv_prev.tv_usec >