diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-09-28 15:02:27 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-09-28 15:02:27 +0000 |
commit | 70d2e566fd56f3abb3250f979e6ff51800df6021 (patch) | |
tree | 52646651bba6a357360983209cd3cbd258c16393 | |
parent | e059a5e4cc55cf254b4d42605c82545b41efa798 (diff) | |
download | fetchmail-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |