-----BEGIN PGP SIGNED MESSAGE-----
From: dattier(_at_)wwa(_dot_)com (David W. Tamkin)
Date: Wed Apr 24, 3:16pm
Robert Brown asked,
| 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
If you want to print out only one header (or a short specific list of
headers) and the body,
formail -kX'From ' < foo
will preserve the From_ line and the body.
formail -kXFrom < foo
will keep the body and every line from the head that starts with 'From':
i.e., the From_ line and the From: header.
Thanks. I ended up solving this by writing a sed script (since I can use
a list of headers in that case).
Thanks.
- --
Internet: dummy(_at_)c2(_dot_)org In real life: Robert Brown,
URL: http://www.c2.org/~dummy in sunny Berkeley, CA
>> Kill your television! << waiting for The Big One
>> Get used to it: breeding time is over! << (510) 464-4604
-----BEGIN PGP SIGNATURE-----
Version: 2.6
iQB1AwUBMX6NHzZMMbnCKCB9AQHjfwL+O3c4CuJZWyfYtqC8Mubswm/ewY9nM8EE
zLbULp6H/8B/ueKIMUxcHmWEXKZnTVIYkxTHtcmuOllIK3Go5BihKEPUNouB2ema
axL/isgXFMwYzgUGNF1mYZppBXjZ3drc
=j2/a
-----END PGP SIGNATURE-----