diff 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
line wrap: on
line diff
--- a/src/conf.c	Sun Apr 24 19:02:09 2011 +0200
+++ b/src/conf.c	Sun Apr 24 19:14:38 2011 +0200
@@ -542,12 +542,8 @@
 			conf.connect_routes = g_list_append(conf.connect_routes, pair);
 		} else if (strcmp(lval, "local_net_route") == 0) {
 			conf.local_net_routes = parse_list(rval, FALSE);
-		} else if (strcmp(lval, "online_detect") == 0)
-			conf.online_detect = g_strdup(rval);
-		else if (strcmp(lval, "online_file") == 0)
-			conf.online_file = g_strdup(rval);
-		else if (strcmp(lval, "online_pipe") == 0)
-			conf.online_pipe = g_strdup(rval);
+		} else if (strcmp(lval, "online_query") == 0)
+			conf.online_query = g_strdup(rval);
 		else if (strcmp(lval, "do_queue") == 0)
 			conf.do_queue = parse_boolean(rval);
 		else if (strcmp(lval, "errmsg_file") == 0)