It turned out that Axel didn't need a Lines: header after all, but when he
thought he might, Christer answered him,
| If your mailclients demand a Lines header, you got two options: Add
| one, or reconfigure (or even recompile) your mailclients. I'll address
| the first one, since that one is easily done in procmail.
| #
| # Generate Lines: header
| #
| :0 b
| LINES=| wc -l | tr -d " "
|
| :0 fhw
| | formail -I "Lines: $LINES"
You don't need to run wc, nor tr, nor the shell to pipe wc to tr, just
formail. Procmail can count the lines itself:
:0Bfhw
* H ?? ! ^Lines:
* 1^1 ^.*$
* -1^0
| formail -I "Lines: $="
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail