aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-12-26 20:23:57 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-12-26 20:23:57 +0000
commit31fbe7cac1c4d1ed16f9fd51ee48419c61f9e4ad (patch)
treee8654618769b6bec68862add92f36e07607ecb7e /uid.c
parent8ef900b0a6b08385cd3e90907bfcd90d946d9bc5 (diff)
downloadfetchmail-31fbe7cac1c4d1ed16f9fd51ee48419c61f9e4ad.tar.gz
fetchmail-31fbe7cac1c4d1ed16f9fd51ee48419c61f9e4ad.tar.bz2
fetchmail-31fbe7cac1c4d1ed16f9fd51ee48419c61f9e4ad.zip
Fixes for brown-paper-bag bug.
svn path=/trunk/; revision=2688
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c18
1 files changed, 11 insertions, 7 deletions
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, " <empty>");
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;