On Thu, 10 Nov 2005, Jandre Olivier wrote:
>
> smarthost:
> driver = manualroute
> transport = remote_smtp
> route_list = * ${readfile{/etc/smarthost}{}}
>
> [ doesn't work when file is empty ]
> I presume I have to use some condition statement, but not sure how to do this?
Instead of adding a condition, use
route_data = ${readfile{/etc/smarthost}{}}
The router declines if the expansion fails or results in an empty string.
Tony.
--
<fanf@???> <dot@???>
http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}