X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=imap.c;h=cb87eda5378f258f20955c3524f2f84c6d29cd0e;hb=b06abacf4b2e334131e5743c0e4ea27ad2829f02;hp=5c3218d0d7c2ecd4e7028a3878647ecbef228600;hpb=bdc248dc59c282e18d48270cb44dc27d35af3841;p=~andy%2Ffetchmail diff --git a/imap.c b/imap.c index 5c3218d0..cb87eda5 100644 --- a/imap.c +++ b/imap.c @@ -1166,7 +1166,8 @@ static int imap_fetch_headers(int sock, struct query *ctl,int number,int *lenp) /* try to recover for some responses */ if (!strncmp(buf, "* NO", 4) || - !strncmp(buf, "* BAD", 5)) + !strncmp(buf, "* BAD", 5) || + strstr(buf, "FETCH ()")) { return(PS_TRANSIENT); } @@ -1181,7 +1182,7 @@ static int imap_fetch_headers(int sock, struct query *ctl,int number,int *lenp) /* an unexpected tagged response */ if (outlevel > O_SILENT) report(stderr, GT_("Incorrect FETCH response: %s.\n"), buf); - return(PS_ERROR); + return(PS_TRANSIENT); } return(ok); }