X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fdrtables.c;h=5f3b33081f15b75f4d698163955d84b00edbf34c;hb=42119b09dd8a23c8fcc14ff65fdc8c4d16c83c23;hp=e9084b2acaa5226f8ffcf26d122e3c681840d7b8;hpb=92f1b1705a69394b944ea16aafbdb9d1351b3b81;p=exim.git diff --git a/src/src/drtables.c b/src/src/drtables.c index e9084b2ac..5f3b33081 100644 --- a/src/src/drtables.c +++ b/src/src/drtables.c @@ -1,10 +1,10 @@ -/* $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.6 2006/02/07 11:19:00 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2005 */ +/* Copyright (c) University of Cambridge 1995 - 2006 */ /* See the file NOTICE for conditions of use and distribution. */ @@ -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