On Jun 1, 2016, at 7:41 AM, @lbutlr <kremels(_at_)kreme(_dot_)com> wrote:
I think I have this working:
:0
* LISTNAME ??^^procmail^^
{
SMS_TIME=`find . -mtime +24h -maxdepth 1 -name .SMS_$LISTNAME | sed
's/^.......//'`
:0
* ! 9876543210^0 SMS_TIME ?? ^^$LISTNAME^^
{
LOG="touch .SMS_$LISTNAME"
SMS_TIME=`touch .SMS_$LISTNAME`
INCLUDERC=$HOME/.sms_procmail
SWITCHRC
}
:0E
{
SWITCHRC
}
}
Evidently not, but I don’t know why. I get this in the logs:
procmail: Match on “^^procmail^^"
procmail: Executing "find . -mtime +24h -maxdepth 1 -name .SMS_$LISTNAME | sed
's/^.......//'"
procmail: Assigning "SMS_TIME=“
procmail: Score: 0 0 "^^$LISTNAME^^"
procmail: Assigning "LOG=touch .SMS_procmail
“
touch .SMS_postfix
procmail: Executing "touch,.SMS_procmail"
So, the negation is not working as I expect.
Also, in the line where it is executing the find, $LISTNAME doesn’t get
expanded, but in the touch line, it does.
--
If there's a bustle in your hedgerow don't be alarmed now.
____________________________________________________________
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