Andrew Edelstein <andrew(_at_)pure-chaos(_dot_)com> writes:
...
Operating on that assumption, it's fairly simple.
:0
* ^To:[ ]\/.*
VARIABLE=$MATCH
Close, but not quite: you can't use a variable assignment as an action.
The above will actually deliver the message to a file named
VARIABLE=address-from-header-here
Wrapping the assignment inside a nested block action solves the problem:
:0
* ^To:[ ]*\/[^ ].*
{
VARIABLE = $MATCH
}
I've also fixed the condition to strip leading whitespace. Both
brackets contain both a space and a tab; the second one starts with a
caret to invert it.
Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail