aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-10 20:54:34 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-10 20:54:34 +0000
commit473437ebe5a57fc2d4bfd782ecc004394f339033 (patch)
tree73c5a891e4f289758375cb580474afd922cd34fd /uid.c
parentd9ea0c7ef93176ea409fd57911f973932be0d897 (diff)
downloadfetchmail-473437ebe5a57fc2d4bfd782ecc004394f339033.tar.gz
fetchmail-473437ebe5a57fc2d4bfd782ecc004394f339033.tar.bz2
fetchmail-473437ebe5a57fc2d4bfd782ecc004394f339033.zip
UIDs are back in.
svn path=/trunk/; revision=286
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/uid.c b/uid.c
index 06acd5a9..01b8999c 100644
--- a/uid.c
+++ b/uid.c
@@ -29,8 +29,10 @@
/*
* Machinery for handling UID lists live here. This is mainly to support
* RFC1725-conformant POP3 servers without a LAST command, but may also be
- * useful for making the IMAP4 querying logic UID-oriented, if I feel
- * sufficiently motivated at some point.
+ * useful for making the IMAP4 querying logic UID-oriented, if a future
+ * revision of IMAP forces me to. (This would be bad. Server-side
+ * seen bits are better than UIDs, because they track messages seen by
+ * *all* clients.)
*
* Here's the theory:
*
@@ -74,7 +76,7 @@ char *idfile;
/* make sure lists are initially empty */
for (hostp = hostlist; hostp; hostp = hostp->next)
- hostp->saved = hostp->mailbox = (struct idlist *)NULL;
+ hostp->saved = hostp->current = (struct idlist *)NULL;
/* let's get stored message UIDs from previous queries */
if ((tmpfp = fopen(idfile, "r")) != (FILE *)NULL) {
@@ -169,10 +171,10 @@ void update_uid_lists(hostp)
struct hostrec *hostp;
{
/*
- * Replace `saved' list with `mailbox' list as modified by deletions.
+ * Replace `saved' list with `current' list as modified by deletions.
*/
free_uid_list(&hostp->saved);
- hostp->saved = hostp->mailbox;
+ hostp->saved = hostp->current;
}
void write_saved_lists(hostlist, idfile)