From f6f9f34d1098a625489805bdf32c14fa502eb81a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 22 Sep 1997 20:50:16 +0000 Subject: Alain Knaff's patch. svn path=/trunk/; revision=1385 --- pop3.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pop3.c b/pop3.c index 4f206d7b..556efeca 100644 --- a/pop3.c +++ b/pop3.c @@ -318,6 +318,13 @@ static int pop3_getrange(int sock, /* Ensure that the new list is properly empty */ ctl->newsaved = (struct idlist *)NULL; +#ifdef MBOX + /* Alain Knaff suggests this, but it's not RFC standard */ + if (folder) + if ((ok = gen_transact(sock, "MBOX %s", folder))) + return ok; +#endif /* MBOX */ + /* get the total message count */ gen_send(sock, "STAT"); ok = pop3_ok(sock, buf); @@ -498,10 +505,12 @@ const static struct method pop3 = int doPOP3 (struct query *ctl) /* retrieve messages using POP3 */ { +#ifndef MBOX if (ctl->mailboxes->id) { fprintf(stderr,"Option --remote is not supported with POP3\n"); return(PS_SYNTAX); } +#endif /* MBOX */ peek_capable = FALSE; return(do_protocol(ctl, &pop3)); } -- cgit v1.2.3