aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-03-24 00:18:21 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-03-24 00:18:21 +0000
commitc753710356d36bb624bd975a8409a6d794c00dda (patch)
tree69d2cfa94a0e1e61ead44130bcbf25f586f6baed /pop3.c
parentd2d2a311c916b79faff67d00ba0cc5b9e3a0bdb8 (diff)
downloadfetchmail-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pop3.c b/pop3.c
index 9502d104..f189e39d 100644
--- a/pop3.c
+++ b/pop3.c
@@ -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)