From 0bcc6704101d1ca85981245d9efae0fea9803b16 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 1 Aug 2001 07:20:53 +0000 Subject: Backed out bad BAD and NO handling. svn path=/trunk/; revision=3434 --- NEWS | 1 + imap.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/NEWS b/NEWS index ee8125c4..ef9b54fc 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ (The `lines' figures total .c, .h, .l, and .y files under version control.) * Handle ! in RFC2821 Return-Path addresses properly. +* Backed out attempt to handle BAD and NO responses to FETCH, it's broken. fetchmail-5.8.15 (Tue Jul 31 02:07:03 EDT 2001), 21075 lines: diff --git a/imap.c b/imap.c index 7ea1ef98..0adb7075 100644 --- a/imap.c +++ b/imap.c @@ -680,10 +680,6 @@ static int imap_fetch_headers(int sock, struct query *ctl,int number,int *lenp) return(ok); if (sscanf(buf+2, "%d FETCH (%*s {%d}", &num, lenp) == 2) break; - else if (sscanf(buf+2, "%d NO", &num) == 1) - return(PS_ERROR); - else if (sscanf(buf+2, "%d BAD", &num) == 1) - return(PS_ERROR); } if (num != number) -- cgit v1.2.3