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 diff
1.1 --- a/src/conf.c Wed Apr 03 21:45:57 2013 +0200 1.2 +++ b/src/conf.c Thu Nov 20 20:36:20 2014 +0100 1.3 @@ -624,6 +624,10 @@ 1.4 route->allowed_recipients = parse_address_glob_list(rval); 1.5 } else if (strcmp(lval, "denied_recipients")==0) { 1.6 route->denied_recipients = parse_address_glob_list(rval); 1.7 + } else if (strcmp(lval, "allowed_from_hdrs")==0) { 1.8 + route->allowed_from_hdrs = parse_address_glob_list(rval); 1.9 + } else if (strcmp(lval, "denied_from_hdrs")==0) { 1.10 + route->denied_from_hdrs = parse_address_glob_list(rval); 1.11 1.12 } else if (strcmp(lval, "set_h_from_domain")==0) { 1.13 route->set_h_from_domain = g_strdup(rval);