aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/imap.c b/imap.c
index 3ff1a57c..0e75524d 100644
--- a/imap.c
+++ b/imap.c
@@ -133,6 +133,7 @@ int *sizes;
else
sizes[num - 1] = -1;
}
+ fseek(sockfp, 0L, SEEK_CUR);
return(0);
}
@@ -168,6 +169,7 @@ int *lenp;
return(PS_SOCKET);
} while
(sscanf(buf+2, "%d FETCH (RFC822 {%d}", &num, lenp) != 2);
+ fseek(sockfp, 0L, SEEK_CUR);
if (num != number)
return(PS_ERROR);
@@ -186,7 +188,10 @@ int number;
if (fgets(buf, sizeof(buf), sockfp) == (char *)NULL)
return(PS_SOCKET);
else
+ {
+ fseek(sockfp, 0L, SEEK_CUR);
return(0);
+ }
}
static int imap_delete(sockfp, ctl, number)