diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-11-30 19:26:17 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-11-30 19:26:17 +0000 |
commit | 5ed86c7189f48e3fa40a1fe8de6c84407d0cf776 (patch) | |
tree | dd2c187e79a0fafe7a842c47d5f1d7fc7bdd42c1 /uid.c | |
parent | 431c193b9526426f86b8b9c0d45f15e0439a882d (diff) | |
download | fetchmail-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.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 */ { |