bodysurf(_at_)netcom(_dot_)com (Tim) writes:
...
but this doesn't save the headers. I could combine the two recipes this
way, but it doesn't seem efficient:
:0hc:.gziplock
* ^Received.*(idiot)
| gzip -fc >> $PMDIR/headers.gz
:0
* ^Received.*(idiot)
{ EXITCODE = 77 HOST }
Is there way to combine these two recipes into one via, say, nesting
blocks, or is the way I am doing it the easiest/most efficient way; it
sure doesn't seem so.
You're looking for:
:0
* ^Received.*(idiot)
{
EXITCODE = 77
:0h:$PMDIR/.gziplock
| gzip -fc >> $PMDIR/headers.gz
}
No need to do the HOST trick when you have something to do any actual
delivery action. BTW: do you want the lockfile to be in the same directory
as the file it's 'locking'?
Philip Guenther