From 5fd829f0e1478c57c076c05af4109e565d5eb9ca Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 17 May 1997 22:10:57 +0000 Subject: Better antispam at last. svn path=/trunk/; revision=1020 --- driver.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index fd0c2138..62cd604a 100644 --- a/driver.c +++ b/driver.c @@ -1523,17 +1523,16 @@ const struct method *proto; /* protocol method table */ goto cleanUp; set_timeout(ctl->server.timeout); - /* + /* * If we're using IMAP4 or something else that * can fetch headers separately from bodies, - * it's time to request the body now. This fetch - * may be skipped if we got an anti-spam or - * other error response from SMTP. + * it's time to request the body now. This + * fetch may be skipped if we got an anti-spam + * or other PS_REFUSED error response during + * read_headers. */ if (protocol->fetch_body && !suppress_forward) { - int ok; - if ((ok = (protocol->trail)(sock, ctl, num))) goto cleanUp; set_timeout(ctl->server.timeout); @@ -1543,7 +1542,11 @@ const struct method *proto; /* protocol method table */ } /* process the body now */ - ok = readbody(sock, ctl,TRUE,len,protocol->delimited); + ok = readbody(sock, + ctl, + !suppress_forward, + len, + protocol->delimited); if (ok == PS_TRANSIENT) suppress_delete = TRUE; else if (ok) -- cgit v1.2.3