On Tue, Jan 11, 2005 at 12:03:38AM +0100, Ruud H.G. van Tol wrote:
Toen wij Dallman Ross kietelden, kwam er dit uit:
Ruud H.G. van Tol:
Dallman Ross:
REM = '$ ^^($myrem)?'
How about REM = ' $ ^${:+$myrem}'
When I saw that, I thought, "Great!"
However, I can't get it to work, for some reason.
OK, let me try.
BTW, I really like that embedded! starting-$ to force an extra
parsing, I wil have some fun with that.
Thanks.
Oops: the ${:+anything} always returns null (of course),
so just doesn't show up in the log.
Hah! But I figured out a way. Reverse the logic! I kind of like this:
REM = '!$^^ ${-$myrem} ^^ !'
myrem = "Kilroy was here"
VERBOSE = on
:0
* $ $REM
* some_condition
{ SUCCESS = yes }
Here that is from the log:
2:00am [~/Mail] 300[0]> vsnag.point-n-shoot.sh --rcfile test.rc --verbose
off $SPAMPLE
procmail: [5982] Tue Jan 11 02:00:24 2005
==> procmail: Match on ! "^^ Kilroy was here ^^ !"
procmail: No match on "some_condition"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
From qolhkxt(_at_)freewebe(_dot_)com Thu Jan 6 18:56:00 2005
Subject: Be|ow the Radar Equity
Folder: /dev/null
8221
Whoa, wait a minute, here's another idea:
REM = '!$ ^^^^ ${-$myrem} ^^^^ !
'
2:08am [~/Mail] 332[0]> vsnag.point-n-shoot.sh --rcfile test.rc --verbose
off $SPAMPLE
procmail: [5546] Tue Jan 11 02:08:41 2005
==> procmail: Match on ! "^^^^ Kilroy was here ^^^^ !
"
procmail: No match on "some_condition"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
From qolhkxt(_at_)freewebe(_dot_)com Thu Jan 6 18:56:00 2005
Subject: Be|ow the Radar Equity
Folder: /dev/null
8221
Now, if that isn't visible, I don't know what is.
--
dman
____________________________________________________________
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