masqmail
diff src/deliver.c @ 375:3f923f97563b
local_hosts now understands glob patterns like `*example.org'.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 14 Jan 2012 18:14:07 +0100 |
parents | a96bb42f597d |
children | a408411ff8df |
line diff
1.1 --- a/src/deliver.c Sat Jan 14 17:27:21 2012 +0100 1.2 +++ b/src/deliver.c Sat Jan 14 18:14:07 2012 +0100 1.3 @@ -261,7 +261,7 @@ 1.4 1.5 /* search for local host list: */ 1.6 foreach(conf.local_hosts, dom_node) { 1.7 - if (strcasecmp(dom_node->data, rcpt->domain) == 0) { 1.8 + if (fnmatch(dom_node->data, rcpt->domain, FNM_CASEFOLD)==0) { 1.9 *p_local_list = g_list_append(*p_local_list, rcpt); 1.10 DEBUG(5) debugf("<%s@%s> is local\n", rcpt->local_part, rcpt->domain); 1.11 break;