In my .procmailrc I have the following:
QUAD1="0*([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])"
QUADn="0*([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])"
IP=$QUAD1[.]$QUADn[.]$QUADn[.]$QUADn
REGEXP="Received:"
MATEXP=$REGEXP".*[^0-9.]\/$IP"
:0
* $ ^\/$REGEXP(.*$)+
{
HEADERLINES = $MATCH
INCLUDERC = ${HOME}/XIP.rc
}
The variable HEADERLINES is set to the group of headerlines from the
first ^Received:-line until the end. But it would be sufficient if
all the headerlines from the first ^Received to the last ^Received
would be matched. I tried
* $ ^\/$REGEXP(.*$)*$REGEXP(.*)$
but that didn't work. If you know why it doesn't, and/or how to
make it work, I would be much obliged.
Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail