On 25-Jun-2007, at 19:14, Dallman Ross wrote:
On Mon, Jun 25, 2007 at 06:41:32PM -0600, LuKreme wrote:
And yeah, the $HOME and $USER do NOT expand ??
$USER is not known to procmail. Use $LOGNAME. $HOME works.
Yes, $USER is passed to the procmailrc.common and expands in other
parts of the file. In fact, I put this in the file:
LOG="test -d $HOME/$USER || mkdir -p $HOME/$USER $NL"
MAKENEWDIR=`test -d $HOME/$USER || mkdir -p $HOME/$USER`
and get this:
procmail: Assigning "LOG=test -d /usr/local/virtual/fred(_at_)kreme(_dot_)com
||
mkdir -p
/usr/local/virtual/fred(_at_)kreme(_dot_)com
"
test -d /usr/local/virtual/fred(_at_)kreme(_dot_)com || mkdir -p /usr/local/
virtual/fred(_at_)kreme(_dot_)com
procmail: Executing "test -d $HOME/$USER || mkdir -p $HOME/$USER"
So, the variables are expanded in the LOG, but not in the MAKENEWDIR
--
Rincewind had always been happy to think of himself as a racist. The
One Hundred Meters, the Mile, the Marathon -- he'd run them all.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail