Mercurial > masqmail
comparison src/conf.c @ 310:f10a56dc7481
reworked online_detect to the simpler online_query
Only pipe is supported now. Use
online_query="/bin/cat /path/to/file"
instead of
online_detect=file
online_file=/path/to/file
and
online_query="/path/to/some/script foo"
instead of
online_detect=pipe
online_pipe="/path/to/some/script foo"
See man page masqmail.conf(5) and admin/config-transition.
author | meillo@marmaro.de |
---|---|
date | Sun, 24 Apr 2011 19:14:38 +0200 |
parents | e0de950ed497 |
children | e230bcd0f1c6 |
comparison
equal
deleted
inserted
replaced
309:273f6c9eb6a2 | 310:f10a56dc7481 |
---|---|
540 GList *file_list = parse_list(rval, FALSE); | 540 GList *file_list = parse_list(rval, FALSE); |
541 table_pair *pair = create_pair(&(lval[14]), file_list); | 541 table_pair *pair = create_pair(&(lval[14]), file_list); |
542 conf.connect_routes = g_list_append(conf.connect_routes, pair); | 542 conf.connect_routes = g_list_append(conf.connect_routes, pair); |
543 } else if (strcmp(lval, "local_net_route") == 0) { | 543 } else if (strcmp(lval, "local_net_route") == 0) { |
544 conf.local_net_routes = parse_list(rval, FALSE); | 544 conf.local_net_routes = parse_list(rval, FALSE); |
545 } else if (strcmp(lval, "online_detect") == 0) | 545 } else if (strcmp(lval, "online_query") == 0) |
546 conf.online_detect = g_strdup(rval); | 546 conf.online_query = g_strdup(rval); |
547 else if (strcmp(lval, "online_file") == 0) | |
548 conf.online_file = g_strdup(rval); | |
549 else if (strcmp(lval, "online_pipe") == 0) | |
550 conf.online_pipe = g_strdup(rval); | |
551 else if (strcmp(lval, "do_queue") == 0) | 547 else if (strcmp(lval, "do_queue") == 0) |
552 conf.do_queue = parse_boolean(rval); | 548 conf.do_queue = parse_boolean(rval); |
553 else if (strcmp(lval, "errmsg_file") == 0) | 549 else if (strcmp(lval, "errmsg_file") == 0) |
554 conf.errmsg_file = g_strdup(rval); | 550 conf.errmsg_file = g_strdup(rval); |
555 else if (strcmp(lval, "warnmsg_file") == 0) | 551 else if (strcmp(lval, "warnmsg_file") == 0) |