aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-01-12 17:15:23 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-01-12 17:15:23 +0000
commitbe98bd8f36415ba5a569a21c38f5aed8eef932df (patch)
treed90a5db47ab8a0f90df94ef70a4f84f763aa9fe6
parent5912628ea11febd8651c3924a722bb739bb1d3f4 (diff)
downloadfetchmail-be98bd8f36415ba5a569a21c38f5aed8eef932df.tar.gz
fetchmail-be98bd8f36415ba5a569a21c38f5aed8eef932df.tar.bz2
fetchmail-be98bd8f36415ba5a569a21c38f5aed8eef932df.zip
Fetchseizelimit must be 1 for all POP-family protocols.
svn path=/trunk/; revision=3863
-rw-r--r--driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index efe74a9c..e2ee2787 100644
--- a/driver.c
+++ b/driver.c
@@ -429,8 +429,11 @@ static int fetch_messages(int mailserver_socket, struct query *ctl,
/* for POP3, we can get the size of one mail only! Unfortunately, this
* protocol specific test cannot be done elsewhere as the protocol
* could be "auto". */
- if (ctl->server.protocol == P_POP3)
+ switch (ctl->server.protocol)
+ {
+ case P_POP3: case P_APOP: case P_RPOP:
fetchsizelimit = 1;
+ }
/* Time to allocate memory to store the sizes */
xalloca(msgsizes, int *, sizeof(int) * fetchsizelimit);