qmail-spp - problem when setting env var
Brought to you by:
pavcio
|
From: Derek S. <de...@in...> - 2004-09-21 08:24:51
|
The filters are all running as bash scripts I have the following code in the "helo" filter: if [ `env | grep ^RELAYCLIENT` ]; then echo "$NOW HELO+$TCPREMOTEIP, LOCAL set to Y by RELAYCLIENT" >> $LOGFILE export LOCAL='Y' echo "SLOCAL=Y" fi Then in the "mail" filter I have: # set flag for internal mail - kludge because qmail-spp does not seem to set env vars properly if [ -n "$LOCAL" ]; then internal='Y' fi #internal=$LOCAL echo "$NOW FROM+$TCPREMOTEIP, LOCAL:$LOCAL" >>$LOGFILE I get the following in the LOGFILE: 20040921080755 HELO+xxx.xxx.xxx.xxx, LOCAL set to Y by RELAYCLIENT 20040921080755 FROM+xxx.xxx.xxx.xxx, LOCAL:Y Z Can anyone explain why I get an apparent value in $LOCAL of "Y\nZ" ? TIA, Derek |