aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-15 20:12:53 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-15 20:12:53 +0000
commitdea547a71036ae3445a5a612f6afd00b76ed721a (patch)
tree21526ebcd03d92a894cdb61b36d33ae56b8c5684 /pop3.c
parent3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272 (diff)
downloadfetchmail-dea547a71036ae3445a5a612f6afd00b76ed721a.tar.gz
fetchmail-dea547a71036ae3445a5a612f6afd00b76ed721a.tar.bz2
fetchmail-dea547a71036ae3445a5a612f6afd00b76ed721a.zip
Add multiple-folder support.
svn path=/trunk/; revision=1012
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index cc3a82d2..a6443835 100644
--- a/pop3.c
+++ b/pop3.c
@@ -125,7 +125,10 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
return(0);
}
-static int pop3_getrange(int sock, struct query *ctl, int*countp, int*newp)
+static int pop3_getrange(int sock,
+ struct query *ctl,
+ const char *folder,
+ int *countp, int *newp)
/* get range of messages to be fetched */
{
int ok;
@@ -279,7 +282,7 @@ const static struct method pop3 =
int doPOP3 (struct query *ctl)
/* retrieve messages using POP3 */
{
- if (ctl->mailbox) {
+ if (ctl->mailboxes->id) {
fprintf(stderr,"Option --remote is not supported with POP3\n");
return(PS_SYNTAX);
}