From 70d2e566fd56f3abb3250f979e6ff51800df6021 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 28 Sep 2001 15:02:27 +0000 Subject: Use query names as UID keys. svn path=/trunk/; revision=3500 --- uid.c | 5 ++--- 1 file 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); -- cgit v1.2.3