diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-03-24 00:18:21 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-03-24 00:18:21 +0000 |
commit | c753710356d36bb624bd975a8409a6d794c00dda (patch) | |
tree | 69d2cfa94a0e1e61ead44130bcbf25f586f6baed /pop3.c | |
parent | d2d2a311c916b79faff67d00ba0cc5b9e3a0bdb8 (diff) | |
download | fetchmail-c753710356d36bb624bd975a8409a6d794c00dda.tar.gz fetchmail-c753710356d36bb624bd975a8409a6d794c00dda.tar.bz2 fetchmail-c753710356d36bb624bd975a8409a6d794c00dda.zip |
Incorporated Henrik Storner's mimedecode patch.
svn path=/trunk/; revision=1719
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -353,7 +353,7 @@ pop3_slowuidl( int sock, struct query *ctl, int *countp, int *newp) static int pop3_getrange(int sock, struct query *ctl, const char *folder, - int *countp, int *newp) + int *countp, int *newp, int *bytes) /* get range of messages to be fetched */ { int ok; @@ -375,7 +375,7 @@ static int pop3_getrange(int sock, gen_send(sock, "STAT"); ok = pop3_ok(sock, buf); if (ok == 0) - sscanf(buf,"%d %*d", countp); + sscanf(buf,"%d %d", countp, bytes); else return(ok); @@ -445,7 +445,7 @@ static int pop3_getrange(int sock, } } - return(0); + return(PS_SUCCESS); } static int pop3_getsizes(int sock, int count, int *sizes) |