[Chicago-talk] pass a scalar from procmail to perl?
Richard Reina
richard at rushlogistics.com
Tue Dec 21 08:29:46 PST 2010
I am struggling to get the procmail recipe below to pass the subject to my perl script as a scalar. Everything seems to work accept $SUBJECT does not get passed. Can anyone help?
Thanks,
Richard
:0
* ^FROM:.*
* ^Subject:[ ]*\/[^ ].*
{
SUBJECT=$MATCH
}
:0
* ? perl -e 'require "/home/richard/.pmdir/test_subject.pl"; test_subj("$SUBJECT");'
--
Richard Reina
Rush Logistics, Inc.
Watch our 3 minute movie:
http://www.rushlogistics.com/movie
More information about the Chicago-talk
mailing list