From uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il Thu Aug 29 17:43:27 2002
On Thu, 29 Aug 2002 dman(_at_)nomotek(_dot_)com wrote:
From: Udi Mottelo <uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il>
Sory, you must escape the ] [:
* ^Subject:.*\[VeryLongIdentifier\]
^^ ^^
I don't believe the `]' needs quoting.
I do.
With out "\" procmail will matches: "Subject: GAVRI",
"Subject: London", "Subject: Funy" ... but not "fun" (:-)
Any single char which closed in "[ ... ]" is enoth to match.
^^^^^^
No. ] doesn't need quoting in general.
Here is a some procmailese:
LOG="
\$TESTSTRING has been set to \"$TESTSTRING\"
"
:0
* TESTSTRING ?? ^^\/.*]
{ TESTSTRING=$MATCH }
LOG="\
\$TESTSTRING has now been set to \"$TESTSTRING\"
"
Here is the log from running a test mail through it (in my test harness):
$TESTSTRING has been set to "Let's look for the ] and follow it with more
text."
$TESTSTRING has now been set to "Let's look for the ]"
From dman Thu Aug 29 17:52:54 2002
Subject: testmail
Folder:
198
Moreover, $SHELLMETAS (from the procmailrc man page) are shown to be:
SHELLMETAS &|<>~;?*[
No "]" in there.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail