From bca01a480a4ab699af1a9cd26b4f557fbc228472 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 12 Jun 2001 16:28:32 +0000 Subject: More refactoring. svn path=/trunk/; revision=3342 --- driver.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 27f00930..6116ab5d 100644 --- a/driver.c +++ b/driver.c @@ -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)) -- cgit v1.2.3