From 4cc0e600645340606411571d0b4ce656f13011d0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 22 Jun 2002 20:04:37 +0000 Subject: Sunil's CAPA patch. svn path=/trunk/; revision=3650 --- fetchmail.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index eabc25d4..604dea13 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -1298,7 +1298,9 @@ static int query_host(struct query *ctl) for (i = 0; i < sizeof(autoprobe)/sizeof(autoprobe[0]); i++) { ctl->server.protocol = autoprobe[i]; - st = query_host(ctl); + do { + st = query_host(ctl); + } while (st == PS_REPOLL); if (st == PS_SUCCESS || st == PS_NOMAIL || st == PS_AUTHFAIL || st == PS_LOCKBUSY || st == PS_SMTP || st == PS_MAXFETCH) break; } @@ -1316,7 +1318,9 @@ static int query_host(struct query *ctl) case P_APOP: case P_RPOP: #ifdef POP3_ENABLE - st = doPOP3(ctl); + do { + st = doPOP3(ctl); + } while (st == PS_REPOLL); #else report(stderr, GT_("POP3 support is not configured.\n")); st = PS_PROTOCOL; -- cgit v1.2.3