aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-08-06 09:01:43 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-08-06 09:01:43 +0000
commiteded3bba62428f6cc098c3bd8658d32aee3e2c58 (patch)
tree7f19d576bb20e4ad49b09d65833cefa1726ee3c5 /uid.c
parentba5207121664860a31125c9552ece6a8ffb51e54 (diff)
downloadfetchmail-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/uid.c b/uid.c
index 12405519..33e01293 100644
--- a/uid.c
+++ b/uid.c
@@ -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 */