diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-26 03:01:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-26 03:01:11 +0000 |
commit | 24c90ce22d39bab628f6b84b2ebbacd01b9f784e (patch) | |
tree | 1e650d21ed85ee0eb7750efbdcf3127e24581da6 /imap.c | |
parent | 74631396d18f4c5b025e9cbbb70d0103c783037e (diff) | |
download | fetchmail-24c90ce22d39bab628f6b84b2ebbacd01b9f784e.tar.gz fetchmail-24c90ce22d39bab628f6b84b2ebbacd01b9f784e.tar.bz2 fetchmail-24c90ce22d39bab628f6b84b2ebbacd01b9f784e.zip |
Major changes of data structure and variable names.
svn path=/trunk/; revision=391
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -71,22 +71,22 @@ int socket; } } -int imap_getauth(socket, queryctl, buf) +int imap_getauth(socket, ctl, buf) /* apply for connection authorization */ int socket; -struct hostrec *queryctl; +struct query *ctl; char *buf; { /* try to get authorized */ return(gen_transact(socket, "LOGIN %s \"%s\"", - queryctl->remotename, queryctl->password)); + ctl->remotename, ctl->password)); } -static imap_getrange(socket, queryctl, countp, newp) +static imap_getrange(socket, ctl, countp, newp) /* get range of messages to be fetched */ int socket; -struct hostrec *queryctl; +struct query *ctl; int *countp, *newp; { int ok; @@ -95,7 +95,7 @@ int *countp, *newp; recent = unseen = 0; ok = gen_transact(socket, "SELECT %s", - queryctl->mailbox[0] ? queryctl->mailbox : "INBOX"); + ctl->mailbox[0] ? ctl->mailbox : "INBOX"); if (ok != 0) return(ok); @@ -143,9 +143,9 @@ int count; } } -static imap_is_old(socket, queryctl, num) +static imap_is_old(socket, ctl, num) int socket; -struct hostrec *queryctl; +struct query *ctl; int num; { char buf [POPBUFSIZE+1]; @@ -181,10 +181,10 @@ int *lenp; return(0); } -static imap_trail(socket, queryctl, number) +static imap_trail(socket, ctl, number) /* discard tail of FETCH response */ int socket; -struct hostrec *queryctl; +struct query *ctl; int number; { char buf [POPBUFSIZE+1]; @@ -195,10 +195,10 @@ int number; return(0); } -static imap_delete(socket, queryctl, number) +static imap_delete(socket, ctl, number) /* set delete flag for given message */ int socket; -struct hostrec *queryctl; +struct query *ctl; int number; { return(gen_transact(socket, "STORE %d +FLAGS (\\Deleted)", number)); @@ -222,11 +222,11 @@ const static struct method imap = "LOGOUT", /* the IMAP exit command */ }; -int doIMAP (queryctl) +int doIMAP(ctl) /* retrieve messages using IMAP Version 2bis or Version 4 */ -struct hostrec *queryctl; +struct query *ctl; { - return(do_protocol(queryctl, &imap)); + return(do_protocol(ctl, &imap)); } /* imap.c ends here */ |