X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/ab34101c8b90229a10311ad34ba487f8033ffb75..13b685f963e9313409f8350f718bac411829a5e7:/src/src/drtables.c diff --git a/src/src/drtables.c b/src/src/drtables.c index e9084b2ac..ec7f52745 100644 --- a/src/src/drtables.c +++ b/src/src/drtables.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/drtables.c,v 1.4 2005/05/25 20:07:55 tom Exp $ */ +/* $Cambridge: exim/src/src/drtables.c,v 1.5 2005/08/01 13:20:28 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -93,6 +93,10 @@ be NULL for methods that don't need them. */ #include "lookups/spf.h" #endif +#ifdef LOOKUP_SQLITE +#include "lookups/sqlite.h" +#endif + #ifdef LOOKUP_TESTDB #include "lookups/testdb.h" #endif @@ -458,6 +462,23 @@ Shares many functions with lsearch. */ #endif }, +/* sqlite lookup */ + + { + US"sqlite", /* lookup name */ + lookup_absfilequery, /* query-style lookup, starts with file name */ +#ifdef LOOKUP_SQLITE + sqlite_open, /* open function */ + NULL, /* no check function */ + sqlite_find, /* find function */ + sqlite_close, /* close function */ + NULL, /* no tidy function */ + sqlite_quote /* quoting function */ +#else + NULL, NULL, NULL, NULL, NULL, NULL /* lookup not present */ +#endif + }, + /* Testdb lookup is for testing Exim, not useful for normal running. For that reason, we omit the entry entirely when not building it into the binary, so that attempts to use it give "unknown lookup type" instead