diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-08-06 09:01:43 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-08-06 09:01:43 +0000 |
commit | eded3bba62428f6cc098c3bd8658d32aee3e2c58 (patch) | |
tree | 7f19d576bb20e4ad49b09d65833cefa1726ee3c5 /uid.c | |
parent | ba5207121664860a31125c9552ece6a8ffb51e54 (diff) | |
download | fetchmail-eded3bba62428f6cc098c3bd8658d32aee3e2c58.tar.gz fetchmail-eded3bba62428f6cc098c3bd8658d32aee3e2c58.tar.bz2 fetchmail-eded3bba62428f6cc098c3bd8658d32aee3e2c58.zip |
David Taylor's fixes for the UIDL code.
svn path=/trunk/; revision=2943
Diffstat (limited to 'uid.c')
-rw-r--r-- | uid.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -470,8 +470,10 @@ void write_saved_lists(struct query *hostlist, const char *idfile) /* if all lists are empty, nuke the file */ idcount = 0; for (ctl = hostlist; ctl; ctl = ctl->next) { - if (ctl->oldsaved) - idcount++; + for (idp = ctl->oldsaved; idp; idp = idp->next) + if (idp->val.status.mark == UID_SEEN + || idp->val.status.mark == UID_DELETED) + idcount++; } /* either nuke the file or write updated last-seen IDs */ |