From ae42b8bda3200abec636e58ae27e1eb5fd92174f Mon Sep 17 00:00:00 2001 From: gilles Date: Fri, 18 Apr 2014 06:59:15 +0000 Subject: [PATCH] support mailaddr lookup in table_db --- usr.sbin/smtpd/table_db.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/smtpd/table_db.c b/usr.sbin/smtpd/table_db.c index 853654dfcb0..9b442bbdc77 100644 --- a/usr.sbin/smtpd/table_db.c +++ b/usr.sbin/smtpd/table_db.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table_db.c,v 1.5 2013/05/24 17:03:14 eric Exp $ */ +/* $OpenBSD: table_db.c,v 1.6 2014/04/18 06:59:15 gilles Exp $ */ /* * Copyright (c) 2011 Gilles Chehade @@ -52,7 +52,7 @@ static char *table_db_get_entry_match(void *, const char *, size_t *, int(*)(const char *, const char *)); struct table_backend table_backend_db = { - K_ALIAS|K_CREDENTIALS|K_DOMAIN|K_NETADDR|K_USERINFO|K_SOURCE|K_ADDRNAME, + K_ALIAS|K_CREDENTIALS|K_DOMAIN|K_NETADDR|K_USERINFO|K_SOURCE|K_MAILADDR|K_ADDRNAME, table_db_config, table_db_open, table_db_update, @@ -66,7 +66,8 @@ static struct keycmp { int (*func)(const char *, const char *); } keycmp[] = { { K_DOMAIN, table_domain_match }, - { K_NETADDR, table_netaddr_match } + { K_NETADDR, table_netaddr_match }, + { K_MAILADDR, table_mailaddr_match } }; struct dbhandle { -- 2.20.1