diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-09-14 20:14:54 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-09-14 20:14:54 +0000 |
commit | ddd0e2aa854c23ecdaf6e620f7fc38a81effbd1b (patch) | |
tree | cd1c47db8e596b2d467db87c9a0fa9957eda1463 /driver.c | |
parent | 4e121fa43e2f4e85664da89c55d31ec70e2d5b5b (diff) | |
download | fetchmail-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |