aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-10 20:48:06 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-10 20:48:06 +0000
commitd9ea0c7ef93176ea409fd57911f973932be0d897 (patch)
tree735fd1e5d94108fca07a4d41502115c1fc90407d /fetchmail.h
parent7482171293db61132b62cd9a86728fd912412aa3 (diff)
downloadfetchmail-d9ea0c7ef93176ea409fd57911f973932be0d897.tar.gz
fetchmail-d9ea0c7ef93176ea409fd57911f973932be0d897.tar.bz2
fetchmail-d9ea0c7ef93176ea409fd57911f973932be0d897.zip
UIDs are back in.
svn path=/trunk/; revision=285
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/fetchmail.h b/fetchmail.h
index a5dcb39c..8c4ee3a3 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -55,6 +55,13 @@
#define SIZETICKER 1024 /* print 1 dot per this many bytes */
+struct idlist
+{
+ int num;
+ char *id;
+ struct idlist *next;
+};
+
struct hostrec
{
/* per-host data */
@@ -80,6 +87,9 @@ struct hostrec
int norewrite;
int skip;
+ /* current, previous state of mailbox (initially from .fetchids) */
+ struct idlist *saved, *current;
+
/* internal use */
int active;
struct hostrec *next; /* next host in chain */
@@ -121,6 +131,7 @@ extern int check_only; /* if --check was set */
/* miscellaneous global controls */
extern char *rcfile; /* path name of rc file */
+extern char *idfile; /* path name of UID file */
extern int linelimit; /* limit # lines retrieved per site */
extern int versioninfo; /* emit only version info */
@@ -134,6 +145,14 @@ int doPOP2 (struct hostrec *);
int doPOP3 (struct hostrec *);
int doIMAP (struct hostrec *);
+void initialize_saved_lists(struct hostrec *, char *);
+void save_uid(struct idlist **, int, char *);
+void free_uid_list(struct idlist **);
+int delete_uid(struct idlist **, char *);
+int uid_in_list(struct idlist **, char *);
+void update_uid_lists(struct hostrec *);
+void write_saved_lists(struct hostrec *, char *);
+
struct hostrec *hostalloc(struct hostrec *);
int parsecmdline (int, char **, struct hostrec *);
void optmerge(struct hostrec *, struct hostrec *);