On Wed, 14 Apr 2004, Dallman Ross wrote:
On Wed, Apr 14, 2004 at 03:42:57PM +1200, Volker Kuhlmann wrote:
[Dallman Ross worte:]
So there you go. Oh, and I have a version where I throw in a -c
option to unfold the headers for grepping, etc.
alias headers 'formail -I =::::::::::::::::::::::= -X "" -20 -s < \!:1'
alias headers 'formail -I =::::::::::::::::::::::= -X "" -20 \!:2* -s <
\!:1'
headers -c mailbox
Excellent! Dankeschoen, Volker.
(But the syntax would be "headers mailbox -c".) ;->
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'
dosmoething | headers
Bye,
Udi
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.
---------------------------------------------------------------------------
Udi Motelo - Unix System Administrator.
Faculty of Engineering - Tel-Aviv University
E-Mail: uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il Phone: +972-3-6408958
---------------------------------------------------------------------------
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail