comparison 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
comparison
equal deleted inserted replaced
428:e972c3cbe1e0 429:5593964ec779
622 route->denied_senders = parse_address_glob_list(rval); 622 route->denied_senders = parse_address_glob_list(rval);
623 } else if (strcmp(lval, "allowed_recipients")==0) { 623 } else if (strcmp(lval, "allowed_recipients")==0) {
624 route->allowed_recipients = parse_address_glob_list(rval); 624 route->allowed_recipients = parse_address_glob_list(rval);
625 } else if (strcmp(lval, "denied_recipients")==0) { 625 } else if (strcmp(lval, "denied_recipients")==0) {
626 route->denied_recipients = parse_address_glob_list(rval); 626 route->denied_recipients = parse_address_glob_list(rval);
627 } else if (strcmp(lval, "allowed_from_hdrs")==0) {
628 route->allowed_from_hdrs = parse_address_glob_list(rval);
629 } else if (strcmp(lval, "denied_from_hdrs")==0) {
630 route->denied_from_hdrs = parse_address_glob_list(rval);
627 631
628 } else if (strcmp(lval, "set_h_from_domain")==0) { 632 } else if (strcmp(lval, "set_h_from_domain")==0) {
629 route->set_h_from_domain = g_strdup(rval); 633 route->set_h_from_domain = g_strdup(rval);
630 } else if (strcmp(lval, "set_h_reply_to_domain")==0) { 634 } else if (strcmp(lval, "set_h_reply_to_domain")==0) {
631 route->set_h_reply_to_domain = g_strdup(rval); 635 route->set_h_reply_to_domain = g_strdup(rval);