On Thu, Nov 23, 2000 at 12:14:59AM -0600, Philip Guenther wrote:
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
Ok, I knew this and figured it was kind of a given, but I guess my example was
rather clumsy (I assumed everyone would fill in the blanks. You're right, I
should be more specific in the future.)
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.
If I follow that correctly, the second bracket (with the carat) causes the
match to start with the first non-whitespace character. Isn't this already
accomplished with the first bracket?
--
Andrew Edelstein http://andrew.pure-chaos.com
"don't blame me... i don't really work!"
Mimick <mimick(_at_)chia(_dot_)net>
Wed, 26 Jul 2000 23:24:56 -0700
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail