On Fri, 5 Sep 2003, Ruud H.G. van Tol wrote:
:0 fr
| gzip -9fc
I'm really curious what procmail makes of this after reading the message
back in; all distinction of header and body are gone ...
To avoid corrupting the .gz file on failure of gzip, you might want to
do something like this:
:0 c
* < 100000
{
:0
* 1^1 > 1
{ }
LENGTH=$=
:0 frw
| gzip -9fc
:0 a
{
:0 r:
* $ $LENGTH^0
* -20000^0
$HOME/raw_big.gz
:0 Er:
$HOME/raw.gz
}
:0:
$HOME/raw.err
}
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail