[EMAIL PROTECTED] wrote:

> I am trying to add a standard disclaimer to my email messages. My mail transport is 
>Exim. I created a transport filter under the remote_smtp_filter.
> I can see that the message is being passed to the filter and going to my command. 
>The script to add the disclaimer is the following.


I bet the message isn't in the standard input.  Put in a sleep command
(maybe 60 seconds) and look at /proc/$pid/fd/0 to see what standard
input is.

If it isn't std input, then it's probably passed in as an argument.
Check the command's arguments by writing them to a log file like this.

        echo "cmd = $0" >> /tmp/mydebug.log
        echo "argv = $@" >> /tmp/mydebug.log

Heck, log stdin the same way:

        ls -l /proc/$$ >> /tmp/mydebug.log

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     [EMAIL PROTECTED]

Reply via email to