Here's some more information:
I have this perl script:
#! /usr/bin/perl
# badcheck.pl
$address = qx'$ADDRESS';
print $address;
which I invoke from this recipe:
#### Testing: invoke perl script and see if it passes back a recipe variable
####
:0
* ^From(_dot_)me(_at_)mydomain(_dot_)com
{
ADDRESS=`formail -rzx "To:"`
TRAP=`$HOME/badcheck.pl`
:0 :
testingFolder
}
I send a message to myself, which produces a match in the recipe. Here's the
log output:
procmail: Executing "formail,-rzx,To:"
procmail: Assigning "ADDRESS=me(_at_)mydomain(_dot_)com"
procmail: Executing "/home/user/badcheck.pl"
sh: me(_at_)mydomain(_dot_)com: command not found
procmail: [8165] Tue Dec 30 09:17:11 2003
procmail: Assigning "TRAP="
It looks to me as though badcheck.pl returned me(_at_)mydomain(_dot_)com(_dot_)
Why did the
shell protest and why didn't me(_at_)mydomain(_dot_)com get assigned as the
value of
TRAP?
Thanks!
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail