[EXIM] Validating pipe return codes

Top Page
Delete this message
Reply to this message
Author: David M Walker
Date:  
To: Exim Users Mailing List
Subject: [EXIM] Validating pipe return codes
I am successfully running a filter with the following line:

unseen pipe "/monza/clients/datamgmt.com/users/filemgr/fextract.pl"
logwrite "$tod_log User $reply_address ..."

Unless there is an unusual error this command nearly always
succeeds, and writes a log message into the log file,
when it doesn't the user gets bounced a message saying its
been rejected, but the log file does not know that its been
bounced and still logs a message.

I therefore would like to test the return code of the pipe
command - how can I do this ?

rgds

davidw

--
*** Exim information can be found at http://www.exim.org/ ***