Mercurial > masqmail
comparison src/fail_msg.c @ 242:bc9d9cd9ee8e
made addr_isequal() and addr_isequal_parent() more flexible
refactored various bits of this stuff.
addr_isequal_alias() had become needless now and was removed.
In fail_msg.c: postmaster is now matched caseless, like required by RFC.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Mon, 25 Oct 2010 17:42:48 -0300 |
parents | dcb315792513 |
children | 82d168dd52fd |
comparison
equal
deleted
inserted
replaced
241:87df0aa99cc7 | 242:bc9d9cd9ee8e |
---|---|
33 GList *node; | 33 GList *node; |
34 | 34 |
35 ret_path = create_address_qualified("postmaster", TRUE, conf.host_name); | 35 ret_path = create_address_qualified("postmaster", TRUE, conf.host_name); |
36 foreach(failed_rcpts, node) { | 36 foreach(failed_rcpts, node) { |
37 address *addr = (address *) (node->data); | 37 address *addr = (address *) (node->data); |
38 if (addr_isequal_parent(addr, ret_path)) { | 38 |
39 if (addr_isequal_parent(addr, ret_path, strcasecmp)) { | |
39 logwrite(LOG_ALERT, "%s == %s: postmaster address failed\n", msg->uid, addr_string(ret_path)); | 40 logwrite(LOG_ALERT, "%s == %s: postmaster address failed\n", msg->uid, addr_string(ret_path)); |
40 return FALSE; | 41 return FALSE; |
41 } | 42 } |
42 } | 43 } |
43 } else | 44 } else |