masqmail

diff src/masqmail.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 792e0201c1b3
children e507c854a63e
line diff
     1.1 --- a/src/masqmail.c	Sun Apr 24 19:02:09 2011 +0200
     1.2 +++ b/src/masqmail.c	Sun Apr 24 19:14:38 2011 +0200
     1.3 @@ -385,8 +385,7 @@
     1.4  
     1.5  	if (do_runq_online) {
     1.6  		if (route_name) {
     1.7 -			conf.online_detect = g_strdup("argument");
     1.8 -			set_online_name(route_name);
     1.9 +			conf.online_query = g_strdup_printf("/bin/echo %s", route_name);
    1.10  		}
    1.11  		/* TODO: change behavior of `-qo without argument'?
    1.12  		         Because that behavior is included in -q. */