Can anyone please tell me what I am doing wrong?
:0c:
* ^Sender:[$SPACETAB]+hpux-admin-owner(_at_)cv(_dot_)ruu(_dot_)nl
hpuxadmin
You need to make use of the '$' modifier, as described in the procmailrc
man page:
$ Evaluate the remainder of this condition according to
sh(1) substitution rules inside double quotes, skip
leading whitespace, then reparse it.
In its current form, your recipe is actually looking for a message that
contains a "Sender:" header followed by one or more occurrences of $, S,
P, A, C, E, T, A, or B.
If you rewrite it as:
:0c:
* $ ^Sender:[$SPACETAB]+hpux-admin-owner(_at_)cv(_dot_)ruu(_dot_)nl
hpuxadmin
Then the $SPACETAB variable will expand as was your original intent.
As an aside, I would probably match on the To: header using the '^TO_'
macro, rather than using the Sender: header, but that may be more of a
personal preference than anything else.
-- Lars
---
Lars Kellogg-Stedman * lars(_at_)bu(_dot_)edu * (617)353-8277
Office of Information Technology, Boston University
PGP 768/4E444575 5F 6C 2C 3E 31 D4 E7 15 E4 33 10 98 6A 14 8B F6