aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-05-24 22:29:53 +0200
committerMatthias Andree <matthias.andree@gmx.de>2016-12-11 22:05:40 +0100
commitcdbac47f9d811eb077c405ceecc6f84a0f8504af (patch)
treef0a0b16e3c92d70f756ec3e2a2c05956d3224686 /fetchmail.h
parentb1e81d36e5a324d1e5257de396a3ff8ff99f71ca (diff)
downloadfetchmail-cdbac47f9d811eb077c405ceecc6f84a0f8504af.tar.gz
fetchmail-cdbac47f9d811eb077c405ceecc6f84a0f8504af.tar.bz2
fetchmail-cdbac47f9d811eb077c405ceecc6f84a0f8504af.zip
UIDL database speedup with Patricia trees.
Import Rainer Weikusat's code that uses Patricia trees instead of linear lists. Snapshot Rainer's patch 2010-05-24 19:30:42
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fetchmail.h b/fetchmail.h
index f14d51d4..98f07742 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -39,6 +39,8 @@ struct addrinfo;
# include "trio/trio.h"
#endif
+#include "uid_db.h"
+
/* We need this for strstr */
#if !defined(HAVE_STRSTR) && !defined(strstr)
char *strstr(const char *, const char *);
@@ -389,8 +391,7 @@ struct query
int smtp_socket; /* socket descriptor for SMTP connection */
unsigned int uid; /* UID of user to deliver to */
struct idlist *skipped; /* messages skipped on the mail server */
- struct idlist *oldsaved, *newsaved;
- struct idlist **oldsavedend;
+ struct uid_db oldsaved, newsaved;
char lastdigest[DIGESTLEN]; /* last MD5 hash seen on this connection */
char *folder; /* folder currently being polled */