diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-06-12 16:28:32 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-06-12 16:28:32 +0000 |
commit | bca01a480a4ab699af1a9cd26b4f557fbc228472 (patch) | |
tree | 1adb3c2f1a977d7ad25ab9334216a35215117054 /driver.c | |
parent | 2312bef59bf7e9ccbc1a38c941cf58ccb4492a11 (diff) | |
download | fetchmail-bca01a480a4ab699af1a9cd26b4f557fbc228472.tar.gz fetchmail-bca01a480a4ab699af1a9cd26b4f557fbc228472.tar.bz2 fetchmail-bca01a480a4ab699af1a9cd26b4f557fbc228472.zip |
More refactoring.
svn path=/trunk/; revision=3342
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -313,7 +313,7 @@ static void send_size_warnings(struct query *ctl) close_warning_by_mail(ctl, (struct msgblk *)NULL); } -static int lockstep_fetch(int mailserver_socket, struct query *ctl, +static int fetch_messages(int mailserver_socket, struct query *ctl, int count, int *msgsizes, int new, int force, int maxfetch, int *fetches, int *dispatches, int *deletions) @@ -596,8 +596,7 @@ static int lockstep_fetch(int mailserver_socket, struct query *ctl, struct idlist *sdp; for (sdp = ctl->newsaved; sdp; sdp = sdp->next) - if ((sdp->val.status.num == num) - && (!toolarge || oldmsg)) + if ((sdp->val.status.num == num) && (!toolarge || oldmsg)) { sdp->val.status.mark = UID_SEEN; save_str(&ctl->oldsaved, sdp->id,UID_SEEN); @@ -1176,7 +1175,7 @@ is restored.")); stage = STAGE_FETCH; /* fetch in lockstep mode */ - if (!lockstep_fetch(mailserver_socket, ctl, + if (!fetch_messages(mailserver_socket, ctl, count, msgsizes, new, force_retrieval, maxfetch, &fetches, &dispatches, &deletions)) |