aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-30 21:57:07 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-30 21:57:07 +0000
commite83dc39d6853ec31919ee54223fe1196b8d7de1d (patch)
tree68a6f2afd365b73ea6690c178bdb8d2d33c76c51 /imap.c
parent0a9f1280ef062b8f1aeef1b99cd7738f79d5d1ca (diff)
downloadfetchmail-e83dc39d6853ec31919ee54223fe1196b8d7de1d.tar.gz
fetchmail-e83dc39d6853ec31919ee54223fe1196b8d7de1d.tar.bz2
fetchmail-e83dc39d6853ec31919ee54223fe1196b8d7de1d.zip
More robust message size queries
svn path=/trunk/; revision=1447
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/imap.c b/imap.c
index cb3437a8..2b25f866 100644
--- a/imap.c
+++ b/imap.c
@@ -463,6 +463,7 @@ static int imap_getsizes(int sock, int count, int *sizes)
/* capture the sizes of all messages */
{
char buf [POPBUFSIZE+1];
+ int i;
gen_send(sock, "FETCH 1:%d RFC822.SIZE", count);
for (;;)
@@ -475,8 +476,6 @@ static int imap_getsizes(int sock, int count, int *sizes)
break;
else if (sscanf(buf, "* %d FETCH (RFC822.SIZE %d)", &num, &size) == 2)
sizes[num - 1] = size;
- else
- sizes[num - 1] = -1;
}
return(PS_SUCCESS);