Mercurial > masqmail
diff src/conf.c @ 429:5593964ec779
Added route conditions based on the From header
New route config directives: allowed_from_hdrs, denied_from_hdrs.
This feature was motivated by Philipp Takacs <philipp29@t-online.de>.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 20 Nov 2014 20:36:20 +0100 |
parents | e972c3cbe1e0 |
children |
line wrap: on
line diff
--- a/src/conf.c Wed Apr 03 21:45:57 2013 +0200 +++ b/src/conf.c Thu Nov 20 20:36:20 2014 +0100 @@ -624,6 +624,10 @@ route->allowed_recipients = parse_address_glob_list(rval); } else if (strcmp(lval, "denied_recipients")==0) { route->denied_recipients = parse_address_glob_list(rval); + } else if (strcmp(lval, "allowed_from_hdrs")==0) { + route->allowed_from_hdrs = parse_address_glob_list(rval); + } else if (strcmp(lval, "denied_from_hdrs")==0) { + route->denied_from_hdrs = parse_address_glob_list(rval); } else if (strcmp(lval, "set_h_from_domain")==0) { route->set_h_from_domain = g_strdup(rval);