aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pop3.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/pop3.c b/pop3.c
index 491bf912..c3b2da60 100644
--- a/pop3.c
+++ b/pop3.c
@@ -158,16 +158,14 @@ int *countp, *newp;
}
else
{
- int num;
- struct idlist *idp;
-
/* grab the mailbox's UID list */
- *newp = 0;
- gen_send(socket, "UIDL");
- if ((ok = pop3_ok(socket, buf)) != 0)
+ if ((ok = gen_transact(socket, "UIDL")) != 0)
PROTOCOL_ERROR
else
{
+ int num;
+
+ *newp = 0;
while (SockGets(socket, buf, sizeof(buf)) >= 0)
{
if (outlevel == O_VERBOSE)