From 38528f8329458e9faf675677bc7a2e4524af3aa4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 17 Feb 1998 22:58:54 +0000 Subject: Fix bad UID/fetchlimit interaction. svn path=/trunk/; revision=1645 --- fetchmail.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'fetchmail.h') diff --git a/fetchmail.h b/fetchmail.h index 50ce5640..3347889f 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -159,10 +159,6 @@ struct query int batchlimit; /* max # msgs to pass in single SMTP session */ int expunge; /* max # msgs to pass between expunges */ - /* unseen, previous state of mailbox (initially from .fetchids) */ -#define UID_KEPT 0 /* this was remembered from a previous run */ -#define UID_DELETED -1 /* this message has been deleted */ -#define UID_EXPUNGED -2 /* this message has been expunged */ struct idlist *oldsaved, *newsaved; /* internal use */ @@ -174,6 +170,17 @@ struct query struct query *next; /* next query control block in chain */ }; +/* + * UID-index information. If the sign bit is on, this means the + * message UID has been seen or expunged and should be written + * out to .fetchids at end of run. + */ +#define UID_KEPT 0 /* remembered from a previous run */ +#define UID_DELETED INT_MIN /* this message has been deleted */ +#define UID_EXPUNGED INT_MAX /* this message has been expunged */ +#define SAVE_UID(n) ((n) < 0) /* must this UID be saved? */ +#define MARK_SEEN(n) n *= -1 /* mark a UID seen */ + /* * Numeric option handling. Numeric option value of zero actually means * it's unspecified. Value less than zero is zero. -- cgit v1.2.3