procmail
[Top] [All Lists]

Request for extended explanation about $\VAR

2002-08-20 01:51:25

        I try to understand the $\VAL and I have difficult while reading
        the man pages.

        From the procmailrc's man - the BUG part:

        "...Furthermore, the result of $\name substitution will never
            be split on whitespace..."

        I can't understand it and I can't build any demo to research it ?!
        I didn't find info in the FAQ also.

        Take a look at this:

yarkon~% cat testrc
SHELL=/bin/sh
DEFAULT=/dev/null

:0
* Subject: \/.*
{
LOG="===  $\MATCH  ===
"
LOG="---  $MATCH  ---
"
}
yarkon~% /bin/echo "Subject: 123  \n  qqq" | formail -s procmail ./testrc
===  ()123     qqq  ===
---  123     qqq  ---
yarkon~% /bin/echo "Subject: 123\nqqq" | formail -s procmail ./testrc
===  ()123  ===
---  123  ---
yarkon~%

        1>  There are no difference between $MATCH and $\MATCH.
        2>  When the "\n" is surrounded by spaces MATCH takes the two lines.


Thanks in advanced,
  Udi


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

<Prev in Thread] Current Thread [Next in Thread>