Pollywog schreef:
* $^To:.*\<$\LOGNAME\>
Why is there a "\" between the "$" and the "L" ?
$\VAR returns the value of $VAR, but with a () prefix and with special
characters escaped, to make it safe to use it inside a regular
expression. See man procmailrc:
"$\name will be substituted by the
all-magic-regular-expression-characters-disarmed equivalent of $name
[...] Furthermore, the result of $\name substitution will never be split
on whitespace."
===8<===8<===8<===8<===8<===8<===8<===
#!/usr/bin/procmail -m
# Prog-ID: escape.rc
# Example: escape.rc ab.c < /dev/null
DEFAULT = /dev/null
VERBOSE = OFF
LOG = "$\1
"
===8<===8<===8<===8<===8<===8<===8<===
The example will print
()ab\.c
--
Groet, Ruud
____________________________________________________________
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