procmail
[Top] [All Lists]

deleting all field headers except ...

1996-04-22 14:42:51

-----BEGIN PGP SIGNED MESSAGE-----

Is there a way to use formail to delete all field headers except a particular
list of them?  I'd like to do something like:

$ formail -I "" -u From < foo

and have this only print out the From field header.  This doesn't seem to
work, however.  Given that I only have a single pipe in the particular
script I'll be writing, I need to have a single program which has this
functionality.  Perhaps there's a way to do this in sed?

Thanks.


- -- 
Internet: dummy(_at_)c2(_dot_)org                   In real life: Robert Brown,
URL: http://www.c2.org/~dummy                          in sunny Berkeley, CA
       >> Leonardo da Vinci didn't eat meat. <<        waiting for The Big One
A child will cost you $12,000/year on average. <<  (510) 464-4604


-----BEGIN PGP SIGNATURE-----
Version: 2.6

iQB1AwUBMXv5BDZMMbnCKCB9AQHRKAL+MoK+FuQg75i/E7IdtAMUq6Ye4UfOWuFI
gaTfYJtKijGP9u8BLr5u3s8Qxe4dl7y/weW5nybnAOcDe3LhcAsyLoe0HWTlKhxX
F1ZVBYue9DcUccTnIELLKVA05F7dqkGI
=E1Wh
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>