I'm adding the mbox From line and want to rewrite the Xref line if it
is present. I'm not entirely sure the Xref line is always present bu
wasn't sure how to work a test into the procmail rules.
Not really rewrite Xref but capture it and put it under a different
header.
This will put the Xref header into the X-Save-Xref header ONLY if Xref is
present
It is just a filtering recipe, not a delivery recipe, which can be done
afterwards
:0fhw
* ^Xref: \/.*
| formail -I"X-Save-Xref: $MATCH"
Merry Christmas to all, and to all a good new year
TjL
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail