diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-03-17 18:03:58 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-03-17 18:03:58 +0000 |
commit | 93aa31ffc1624a9bc6a985a4c5679bac2ceb5e9a (patch) | |
tree | a17a957c8dacfa6cc33e5ac187bb5a36df1261a6 /uid.c | |
parent | a09d628f66a29063ef3060c1f25b1b23051a7e89 (diff) | |
download | fetchmail-93aa31ffc1624a9bc6a985a4c5679bac2ceb5e9a.tar.gz fetchmail-93aa31ffc1624a9bc6a985a4c5679bac2ceb5e9a.tar.bz2 fetchmail-93aa31ffc1624a9bc6a985a4c5679bac2ceb5e9a.zip |
Dick van den Burg's patch.
svn path=/trunk/; revision=1705
Diffstat (limited to 'uid.c')
-rw-r--r-- | uid.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -93,7 +93,7 @@ void initialize_saved_lists(struct query *hostlist, const char *idfile) strcasecmp(host, ctl->server.truename) == 0 && strcasecmp(user, ctl->remotename) == 0) { - save_str(&ctl->oldsaved, id, UID_SEEN); + save_str(&ctl->oldsaved, id, UID_UNSEEN); break; } } @@ -207,6 +207,18 @@ int str_nr_last_in_list( struct idlist **idl, const char *str) return ret; } +void str_set_mark( struct idlist **idl, const char *str, const flag val) +/* update the mark on an of an id to given value */ +{ + int nr; + struct idlist *walk; + if (!str) + return; + for(walk = *idl, nr = 0; walk; nr ++, walk = walk->next) + if (strcasecmp(str, walk->id) == 0) + walk->val.status.mark = val; +} + int count_list( struct idlist **idl) /* count the number of elements in the list */ { |