aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-22 20:50:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-22 20:50:16 +0000
commitf6f9f34d1098a625489805bdf32c14fa502eb81a (patch)
tree2f99c15ecea0640f4af8dd5f99c70f5df9fb45c9 /pop3.c
parent206e749fc33982847124b3714c2749f80e3b9407 (diff)
downloadfetchmail-f6f9f34d1098a625489805bdf32c14fa502eb81a.tar.gz
fetchmail-f6f9f34d1098a625489805bdf32c14fa502eb81a.tar.bz2
fetchmail-f6f9f34d1098a625489805bdf32c14fa502eb81a.zip
Alain Knaff's patch.
svn path=/trunk/; revision=1385
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c9
1 files changed, 9 insertions, 0 deletions
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));
}