aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-02-15 03:52:22 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-02-15 03:52:22 +0000
commita90b20cfb6fa5332dd8a4335b16a171feaf5a3a1 (patch)
treed6cb1a8bafd9b0ad735f27ada22a5c884be64cb5 /imap.c
parent0b3901aacf0dfb18d83570878919dbdbb7956709 (diff)
downloadfetchmail-a90b20cfb6fa5332dd8a4335b16a171feaf5a3a1.tar.gz
fetchmail-a90b20cfb6fa5332dd8a4335b16a171feaf5a3a1.tar.bz2
fetchmail-a90b20cfb6fa5332dd8a4335b16a171feaf5a3a1.zip
Minor fixes for 5.9.8.
svn path=/trunk/; revision=3578
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/imap.c b/imap.c
index c07ceec7..fd850d78 100644
--- a/imap.c
+++ b/imap.c
@@ -535,8 +535,14 @@ static int imap_getrange(int sock,
report(stdout, GT_("%d messages waiting after first poll\n"), count);
/* no messages? then we may need to idle until we get some */
- if (count == 0 && do_idle)
- imap_idle(sock);
+ while (count == 0 && do_idle) {
+ ok = imap_idle(sock);
+ if (ok)
+ {
+ report(stderr, GT_("re-poll failed\n"));
+ return(ok);
+ }
+ }
/*
* We should have an expunge here to