Mercurial > masqmail
diff 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 |
line wrap: on
line diff
--- a/src/fail_msg.c Mon Oct 25 15:41:48 2010 -0300 +++ b/src/fail_msg.c Mon Oct 25 17:42:48 2010 -0300 @@ -35,7 +35,8 @@ ret_path = create_address_qualified("postmaster", TRUE, conf.host_name); foreach(failed_rcpts, node) { address *addr = (address *) (node->data); - if (addr_isequal_parent(addr, ret_path)) { + + if (addr_isequal_parent(addr, ret_path, strcasecmp)) { logwrite(LOG_ALERT, "%s == %s: postmaster address failed\n", msg->uid, addr_string(ret_path)); return FALSE; }