diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-05-15 20:12:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-05-15 20:12:53 +0000 |
commit | dea547a71036ae3445a5a612f6afd00b76ed721a (patch) | |
tree | 21526ebcd03d92a894cdb61b36d33ae56b8c5684 /imap.c | |
parent | 3dd9a93bd23e0ad36e52ffd79efe2dcbdaf85272 (diff) | |
download | fetchmail-dea547a71036ae3445a5a612f6afd00b76ed721a.tar.gz fetchmail-dea547a71036ae3445a5a612f6afd00b76ed721a.tar.bz2 fetchmail-dea547a71036ae3445a5a612f6afd00b76ed721a.zip |
Add multiple-folder support.
svn path=/trunk/; revision=1012
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -117,16 +117,17 @@ int imap_getauth(int sock, struct query *ctl, char *buf) return(PS_SUCCESS); } -static int imap_getrange(int sock, struct query *ctl, int*countp, int*newp) +static int imap_getrange(int sock, + struct query *ctl, + const char *folder, + int *countp, int *newp) /* get range of messages to be fetched */ { int ok; /* find out how many messages are waiting */ recent = unseen = 0; - ok = gen_transact(sock, - "SELECT %s", - ctl->mailbox ? ctl->mailbox : "INBOX"); + ok = gen_transact(sock, "SELECT %s", folder ? folder : "INBOX"); if (ok != 0) { error(0, 0, "mailbox selection failed"); |