X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=imap.c;h=65d225381b7c1b926c5d38d1e8312dbaf67c6ee2;hb=4b493b7cf285fa8ee2c572987e2e59ec3a743c0b;hp=a181b1dbaf4da4916b11ba75356a2528497fc450;hpb=ecfb21f7457a5137b4664c139ecd69cd36c375f5;p=~andy%2Ffetchmail diff --git a/imap.c b/imap.c index a181b1db..65d22538 100644 --- a/imap.c +++ b/imap.c @@ -1130,7 +1130,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); } @@ -1145,7 +1146,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); }