aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-06-22 21:10:04 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-06-22 21:10:04 +0000
commit014f9aec1c45d5c6384a11daf8820ccb1495aa9a (patch)
tree7ac618667cb5558ac79d146ce6197e186f3b5ef8 /driver.c
parent3a8d7cb928c1e564fb031a0402103573f70c73b4 (diff)
downloadfetchmail-014f9aec1c45d5c6384a11daf8820ccb1495aa9a.tar.gz
fetchmail-014f9aec1c45d5c6384a11daf8820ccb1495aa9a.tar.bz2
fetchmail-014f9aec1c45d5c6384a11daf8820ccb1495aa9a.zip
More patches by Sunil.
svn path=/trunk/; revision=3653
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 99e95d18..79ad4213 100644
--- a/driver.c
+++ b/driver.c
@@ -495,7 +495,7 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
err = readheaders(mailserver_socket, len, msgsizes[num-1],
ctl, num);
if (err == PS_RETAINED)
- suppress_forward = retained = TRUE;
+ suppress_readbody = suppress_forward = suppress_delete = retained = TRUE;
else if (err == PS_TRANSIENT)
suppress_delete = suppress_forward = TRUE;
else if (err == PS_REFUSED)
@@ -631,7 +631,8 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
ctl->errcount++;
suppress_delete = TRUE;
}
- (*fetches)++;
+ if (!retained)
+ (*fetches)++;
}
/*