aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-11-30 19:26:17 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-11-30 19:26:17 +0000
commit5ed86c7189f48e3fa40a1fe8de6c84407d0cf776 (patch)
treedd2c187e79a0fafe7a842c47d5f1d7fc7bdd42c1 /uid.c
parent431c193b9526426f86b8b9c0d45f15e0439a882d (diff)
downloadfetchmail-5ed86c7189f48e3fa40a1fe8de6c84407d0cf776.tar.gz
fetchmail-5ed86c7189f48e3fa40a1fe8de6c84407d0cf776.tar.bz2
fetchmail-5ed86c7189f48e3fa40a1fe8de6c84407d0cf776.zip
Ready to ship 5.2.0.
svn path=/trunk/; revision=2656
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/uid.c b/uid.c
index 934eae82..c7f007e4 100644
--- a/uid.c
+++ b/uid.c
@@ -389,6 +389,18 @@ void update_str_lists(struct query *ctl)
}
}
+void uid_expunge(struct query *ctl)
+/* transfer seen UIDs from newsaved to oldsaved
+ to simulate writing anad rereading .fetchids */
+{
+ struct idlist *i;
+
+ for (i = ctl->newsaved; i; i = i->next)
+ if (i->val.status.mark == UID_SEEN &&
+ !str_in_list(&ctl->oldsaved, i->id, FALSE))
+ save_str(&ctl->oldsaved, i->id, UID_SEEN);
+}
+
void write_saved_lists(struct query *hostlist, const char *idfile)
/* perform end-of-run write of seen-messages list */
{