diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-09-22 20:50:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-09-22 20:50:16 +0000 |
commit | f6f9f34d1098a625489805bdf32c14fa502eb81a (patch) | |
tree | 2f99c15ecea0640f4af8dd5f99c70f5df9fb45c9 | |
parent | 206e749fc33982847124b3714c2749f80e3b9407 (diff) | |
download | fetchmail-f6f9f34d1098a625489805bdf32c14fa502eb81a.tar.gz fetchmail-f6f9f34d1098a625489805bdf32c14fa502eb81a.tar.bz2 fetchmail-f6f9f34d1098a625489805bdf32c14fa502eb81a.zip |
Alain Knaff's patch.
svn path=/trunk/; revision=1385
-rw-r--r-- | pop3.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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)); } |