aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-02-15 03:52:22 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-02-15 03:52:22 +0000
commita90b20cfb6fa5332dd8a4335b16a171feaf5a3a1 (patch)
treed6cb1a8bafd9b0ad735f27ada22a5c884be64cb5 /driver.c
parent0b3901aacf0dfb18d83570878919dbdbb7956709 (diff)
downloadfetchmail-a90b20cfb6fa5332dd8a4335b16a171feaf5a3a1.tar.gz
fetchmail-a90b20cfb6fa5332dd8a4335b16a171feaf5a3a1.tar.bz2
fetchmail-a90b20cfb6fa5332dd8a4335b16a171feaf5a3a1.zip
Minor fixes for 5.9.8.
svn path=/trunk/; revision=3578
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index eb34010a..56c37a73 100644
--- a/driver.c
+++ b/driver.c
@@ -495,10 +495,23 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
suppress_delete = suppress_forward = TRUE;
else if (err == PS_REFUSED)
suppress_forward = TRUE;
+#if 0
+ /*
+ * readheaders does not read the body when it
+ * hits a non-header. It has been recently
+ * fixed to return PS_TRUNCATED (properly) when
+ * that happens, but apparently fixing that bug
+ * opened this one here (which looks like an
+ * inproper fix from some ancient thinko)
+ */
else if (err == PS_TRUNCATED)
suppress_readbody = TRUE;
else if (err)
return(err);
+#else
+ else if (err && err != PS_TRUNCATED)
+ return(err);
+#endif
/*
* If we're using IMAP4 or something else that
@@ -635,7 +648,7 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
/*
* Tell the UID code we've seen this.
* Matthias Andree: only register the UID if we could actually
- * forward this mail. If we omit this !suppress_forward check,
+ * forward this mail. If we omit this !suppress_delete check,
* fetchmail will never retry mail that the local listener
* refused temporarily.
*/