procmail
[Top] [All Lists]

Re: correct syntax of subject variable?

2003-08-28 07:18:21
On Wed, 27 Aug 2003, David W. Tamkin wrote:

Kreemy wrote,

the CARAT means "The Start of a line marker"

Er, no.

First,
A carat is a measure of weight used for diamonds.
A caret -- Fuzzball got it right -- is the punctuation mark in question.

For the record,
A karat is a unit of purity of gold or gold alloys.
A carrot -- which is what Dragoncrest called the punctuation mark --
  is a vegetable, and rumor has it that so is Kreemy.

Second,
In grep or egrep or sed, a caret matches the start of a line.  In
procmail, it matches a newline (real or putative) in the search area.
Usually we use it to match the newline at the start of a regexp that is
anchored to the beginning of a line or to the beginning of a search
area, so it ends up looking the same.

        And some words about the double caret (^^).  It means the very
        beginning of the object that we want to examine.   For example:

:0 B
* ^^x
...
        We are looking for "x" in the first line first char in the
        Body of the message.  In case of Header examination we hope
        that the MATCH will be "F" or Control+A.
        We also use the "^^" to check variables:
...
*$ OWNER ?? ^^$LOGNAME^^
...

Bye,
 Udi




Jim Steinman wrote,

Though it's cold and lonely in the deep dark night I can see paradise
by the dashboard light.

and I agree fully.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


--



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail