aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-09 18:26:29 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-09 18:26:29 +0000
commitc0de8b3ade0ae557755003482a4b67b350efedd3 (patch)
treedb39f52d38b800d789d7569751e4beb0a7f37d23 /pop3.c
parent6e08dd8fffcef5a54395685857fa02a972e7311b (diff)
downloadfetchmail-c0de8b3ade0ae557755003482a4b67b350efedd3.tar.gz
fetchmail-c0de8b3ade0ae557755003482a4b67b350efedd3.tar.bz2
fetchmail-c0de8b3ade0ae557755003482a4b67b350efedd3.zip
Let POP3 pick up the message length.
svn path=/trunk/; revision=272
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index 30cd0a08..84eb9d1d 100644
--- a/pop3.c
+++ b/pop3.c
@@ -178,8 +178,14 @@ int socket;
int number;
int *lenp;
{
- *lenp = 0;
- return(gen_transact(socket, "RETR %d", number));
+ int ok;
+ char buf [POPBUFSIZE+1];
+
+ gen_send(socket, "RETR %d", number);
+ if ((ok = pop3_ok(socket, buf)) != 0)
+ return(ok);
+ *lenp = atoi(buf);
+ return(0);
}
static pop3_delete(socket, queryctl, number)