-----BEGIN PGP SIGNED MESSAGE-----
On Thu, 25 Jul 1996, Rajiv Baronia wrote:
I am new to this group, so forgive me if this has been asked/answered
before.
Basically, I would like to extract the "Subject" field from a message
and pass it to a shell program in the form of a variable.
This should do the trick:
SUBJECT=`formail -zxSubject:` # these are backquotes
:0 <flags>
* conditions
| program $SUBJECT
- --
Guy Geens <guy(_dot_)geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be>: Ph.D.
student at ELIS -- TFCG / IMEC
Home Page: http://www.elis.rug.ac.be/ELISgroups/tfcg/staff/gg.html
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use
keyserver)
"Gold isn't the only thing the government keeps locked away in the vaults of
Fort Knox, KY. As part of the strategic reserve started in 1955, the
government has stockpiled about $23 million worth of opium and morphine.
The reserve was started in case foreign opium supplies were cut off.
Although this is now unlikely, a Louiseville newspaper has reported that
the government plans to spend an additional $7 million to preserve this
national treasure." -- New York Newsday, September 7, 1993
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: pgp fingerprints in message headers
iQBVAwUBMfhtfXwHoCha5QR1AQFeJAIAmgV1cybQGLeLaDpRPyKgbRZZCAqAa8kS
zkpfk5p3ijRlAY9RLRUyNzp+FjsFdPEqOBWxTRreiJ7fbFvg6eANug==
=qgXR
-----END PGP SIGNATURE-----