aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-10-04 14:29:37 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-10-04 14:29:37 +0000
commit313a954360f1659a3a27e1b02c8de7d2aaf99e15 (patch)
treeed4ec54503517e0b5939a6b08b25c61d7674bedc /uid.c
parent8a8b194fae862aa28acc0fd38962423a98e44ef0 (diff)
downloadfetchmail-313a954360f1659a3a27e1b02c8de7d2aaf99e15.tar.gz
fetchmail-313a954360f1659a3a27e1b02c8de7d2aaf99e15.tar.bz2
fetchmail-313a954360f1659a3a27e1b02c8de7d2aaf99e15.zip
Enable conditioning out of POP3, IMAP, ETRN.
svn path=/trunk/; revision=1477
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/uid.c b/uid.c
index ec31d892..01ace720 100644
--- a/uid.c
+++ b/uid.c
@@ -23,6 +23,9 @@
* useful for making the IMAP4 querying logic UID-oriented, if a future
* revision of IMAP forces me to.
*
+ * These functions are also used by the rest of the code to maintain
+ * string lists.
+ *
* Here's the theory:
*
* At start of a query, we have a (possibly empty) list of UIDs to be
@@ -60,6 +63,7 @@
/* UIDs associated with un-queried hosts */
static struct idlist *scratchlist;
+#ifdef POP3_ENABLE
void initialize_saved_lists(struct query *hostlist, const char *idfile)
/* read file of saved IDs and attach to each host */
{
@@ -99,6 +103,7 @@ void initialize_saved_lists(struct query *hostlist, const char *idfile)
fclose(tmpfp);
}
}
+#endif /* POP3_ENABLE */
struct idlist *save_str(struct idlist **idl, int num, const char *str)
/* save a number/UID pair on the given UID list */
@@ -256,6 +261,7 @@ void append_str_list(struct idlist **idl, struct idlist **nidl)
append_str_list(&(*idl)->next, nidl);
}
+#ifdef POP3_ENABLE
void update_str_lists(struct query *ctl)
/* perform end-of-query actions on UID lists */
{
@@ -294,5 +300,6 @@ void write_saved_lists(struct query *hostlist, const char *idfile)
fclose(tmpfp);
}
}
+#endif /* POP3_ENABLE */
/* uid.c ends here */