On Wed, Apr 14, 2004 at 02:52:43PM +0300, Udi Mottelo wrote:
On Wed, 14 Apr 2004, Dallman Ross wrote:
alias headers 'formail -I =::::::::::::::::::::::= -X "" -20 -s < \!:1'
Now, what could I possibly do to make this work when piping to it, too?
As in
zcat mailbox.gz | headers
I didn't try but, instead of the file name (\!:$) use cat:
alias headers 'cat - | formail ..... -s'
In some shelles the following will work:
alias headers 'cat \!:$ | formail ..... -s'
Yes, that's very good. This also works, both on uncompressed
(regular) and gzipped files:
alias headers 'zmore \!:$ | formail -I =:::::::= -X "" -20 -s'
But now I lose the ability to add "-c" if desired, again.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail