aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-27 19:49:39 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-27 19:49:39 +0000
commit5e34a93bd55e96d327379a98e4011b2db0e8303a (patch)
tree4a9cdfe3480ef3e1b30510aca9cd906d8442ee55
parented0d64ecf0fe47706cdacc48be0c887907da9a50 (diff)
downloadfetchmail-5e34a93bd55e96d327379a98e4011b2db0e8303a.tar.gz
fetchmail-5e34a93bd55e96d327379a98e4011b2db0e8303a.tar.bz2
fetchmail-5e34a93bd55e96d327379a98e4011b2db0e8303a.zip
Issue length-mismatch complaints in verbose mode only.
svn path=/trunk/; revision=1425
-rw-r--r--driver.c29
1 files changed, 27 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index a905a481..6bac1565 100644
--- a/driver.c
+++ b/driver.c
@@ -1749,9 +1749,34 @@ const struct method *proto; /* protocol method table */
}
}
- /* check to see if the numbers matched? */
+ /*
+ * Check to see if the numbers matched?
+ *
+ * Yes, some servers foo this up horribly.
+ * All IMAP servers seem to get it right, and
+ * so does Eudora QPOP at least in 2.xx
+ * versions.
+ *
+ * Microsoft Exchange gets it completely
+ * wrong, reporting compressed rather than
+ * actual sizes (so the actual length of
+ * message is longer than the reported size).
+ *
+ * Some older POP servers, like the old UCB
+ * POP server and the pre-QPOP QUALCOMM
+ * versions, report a longer size in the LIST
+ * response than actually gets shipped up.
+ * It's unclear what is going on here, as the
+ * QUALCOMM server (at least) seems to be
+ * reporting the on-disk size correctly.
+ */
if (msgsizes && msglen != msgsizes[num-1])
- error(0, 0, "size of message %d (%d) was not what was expected (%d)", num, msglen, msgsizes[num-1]);
+ {
+ if (outlevel >= O_VERBOSE)
+ error(0, 0,
+ "message %d was not the expected length (%d != %d)",
+ num, msglen, msgsizes[num-1]);
+ }
/* end-of-message processing starts here */