At 15:12 2002-06-07 -0700, Edward Huang did say:
If the subject is BLANK, then apparently the 2nd rule fails
(all it does is just get the subject into the $MATCH variable)
How to fix this?
I extract subject, from, reply, and some other info right up top, so I can
use it easily in recipes (and so that my repetative use doesn't require
repetative match expressions):
:0
* ^Subject[ ]*\/[^ ].*
{
SUBJECT=$MATCH
}
# the above recipe doesn't _deliver_ - it just sets the variable.
:0HBi
* (.....)
| /etc/rejectf "$1" "$2" "$SUBJECT"
FTR, there's no neet to put a leading .* on your string expression, since
the expression isn't _anchored_ to the beginning of line. You'd need it if
you were doing something like:
* ^something.*somethingelse
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail