From 31fbe7cac1c4d1ed16f9fd51ee48419c61f9e4ad Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 26 Dec 1999 20:23:57 +0000 Subject: Fixes for brown-paper-bag bug. svn path=/trunk/; revision=2688 --- uid.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'uid.c') diff --git a/uid.c b/uid.c index 6bf4bf10..9a132606 100644 --- a/uid.c +++ b/uid.c @@ -368,14 +368,9 @@ void expunge_uids(struct query *ctl) idl->val.status.mark = UID_EXPUNGED; } -void write_saved_lists(struct query *hostlist, const char *idfile) -/* perform end-of-run write of seen-messages list */ +void uid_end_query(struct query *ctl) +/* finish a query */ { - int idcount; - FILE *tmpfp; - struct query *ctl; - struct idlist *idp; - /* old state of mailbox is now irrelevant */ free_str_list(&ctl->oldsaved); free_str_list(&scratchlist); @@ -394,6 +389,15 @@ void write_saved_lists(struct query *hostlist, const char *idfile) report_build(stdout, " "); report_complete(stdout, "\n"); } +} + +void write_saved_lists(struct query *hostlist, const char *idfile) +/* perform end-of-run write of seen-messages list */ +{ + int idcount; + FILE *tmpfp; + struct query *ctl; + struct idlist *idp; /* if all lists are empty, nuke the file */ idcount = 0; -- cgit v1.2.3