aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-14 20:14:54 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-14 20:14:54 +0000
commitddd0e2aa854c23ecdaf6e620f7fc38a81effbd1b (patch)
treecd1c47db8e596b2d467db87c9a0fa9957eda1463 /driver.c
parent4e121fa43e2f4e85664da89c55d31ec70e2d5b5b (diff)
downloadfetchmail-ddd0e2aa854c23ecdaf6e620f7fc38a81effbd1b.tar.gz
fetchmail-ddd0e2aa854c23ecdaf6e620f7fc38a81effbd1b.tar.bz2
fetchmail-ddd0e2aa854c23ecdaf6e620f7fc38a81effbd1b.zip
Simplify the length handling.
svn path=/trunk/; revision=1339
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index 7d674ef7..e7320f13 100644
--- a/driver.c
+++ b/driver.c
@@ -1552,12 +1552,12 @@ const struct method *proto; /* protocol method table */
force_retrieval = !peek_capable && (ctl->errcount > 0);
/*
- * We may need to get sizes in order to check message
- * limits. Or it may be forced because the fetch methods
- * don't return reliable sizes.
+ * We need the size of each method before it's loaded in
+ * order to pass via the ESMTP SIZE option. If the protocol
+ * has a getsizes method, we presume this means it doesn't
+ * get reliable sizes from message fetch responses.
*/
- msgsizes = (int *)NULL;
- if (proto->getsizes && (proto->force_getsizes || ctl->limit > 0))
+ if (proto->getsizes)
{
msgsizes = (int *)alloca(sizeof(int) * count);