aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-06-22 20:04:37 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-06-22 20:04:37 +0000
commit4cc0e600645340606411571d0b4ce656f13011d0 (patch)
tree86f643bf72e1fe0fcd86cc5276bf13ae2f5d8308 /fetchmail.c
parentc2bd7816659e36a4e761c0bbd168d8d67135ce32 (diff)
downloadfetchmail-4cc0e600645340606411571d0b4ce656f13011d0.tar.gz
fetchmail-4cc0e600645340606411571d0b4ce656f13011d0.tar.bz2
fetchmail-4cc0e600645340606411571d0b4ce656f13011d0.zip
Sunil's CAPA patch.
svn path=/trunk/; revision=3650
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c8
1 files changed, 6 insertions, 2 deletions
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;