diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-09 18:26:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-09 18:26:29 +0000 |
commit | c0de8b3ade0ae557755003482a4b67b350efedd3 (patch) | |
tree | db39f52d38b800d789d7569751e4beb0a7f37d23 /pop3.c | |
parent | 6e08dd8fffcef5a54395685857fa02a972e7311b (diff) | |
download | fetchmail-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.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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) |