From d9ea0c7ef93176ea409fd57911f973932be0d897 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 10 Oct 1996 20:48:06 +0000 Subject: UIDs are back in. svn path=/trunk/; revision=285 --- fetchmail.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'fetchmail.h') 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 *); -- cgit v1.2.3