Mercurial > masqmail
comparison 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 |
comparison
equal
deleted
inserted
replaced
309:273f6c9eb6a2 | 310:f10a56dc7481 |
---|---|
383 ret = queue_run(); | 383 ret = queue_run(); |
384 } | 384 } |
385 | 385 |
386 if (do_runq_online) { | 386 if (do_runq_online) { |
387 if (route_name) { | 387 if (route_name) { |
388 conf.online_detect = g_strdup("argument"); | 388 conf.online_query = g_strdup_printf("/bin/echo %s", route_name); |
389 set_online_name(route_name); | |
390 } | 389 } |
391 /* TODO: change behavior of `-qo without argument'? | 390 /* TODO: change behavior of `-qo without argument'? |
392 Because that behavior is included in -q. */ | 391 Because that behavior is included in -q. */ |
393 ret = queue_run_online(); | 392 ret = queue_run_online(); |
394 } | 393 } |