aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-09-28 15:02:27 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-09-28 15:02:27 +0000
commit70d2e566fd56f3abb3250f979e6ff51800df6021 (patch)
tree52646651bba6a357360983209cd3cbd258c16393
parente059a5e4cc55cf254b4d42605c82545b41efa798 (diff)
downloadfetchmail-70d2e566fd56f3abb3250f979e6ff51800df6021.tar.gz
fetchmail-70d2e566fd56f3abb3250f979e6ff51800df6021.tar.bz2
fetchmail-70d2e566fd56f3abb3250f979e6ff51800df6021.zip
Use query names as UID keys.
svn path=/trunk/; revision=3500
-rw-r--r--uid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/uid.c b/uid.c
index a33f21b6..c54760e6 100644
--- a/uid.c
+++ b/uid.c
@@ -172,8 +172,7 @@ void initialize_saved_lists(struct query *hostlist, const char *idfile)
}
for (ctl = hostlist; ctl; ctl = ctl->next) {
- if (ctl->server.truename &&
- strcasecmp(host, ctl->server.truename) == 0
+ if (strcasecmp(host, ctl->server.queryname) == 0
&& strcasecmp(user, ctl->remotename) == 0) {
save_str(&ctl->oldsaved, id, UID_SEEN);
@@ -519,7 +518,7 @@ void write_saved_lists(struct query *hostlist, const char *idfile)
if (idp->val.status.mark == UID_SEEN
|| idp->val.status.mark == UID_DELETED)
fprintf(tmpfp, "%s@%s %s\n",
- ctl->remotename, ctl->server.truename, idp->id);
+ ctl->remotename, ctl->server.queryname, idp->id);
}
for (idp = scratchlist; idp; idp = idp->next)
fputs(idp->id, tmpfp);