procmail
[Top] [All Lists]

simple body parse

2000-11-20 09:31:56
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This should be simple but I am a procmail newbie.  I simply want to
find a word in the body and load it into a variable to pass to an
outside script.  I need to use sed to remove a word that will match
my wildcard (part of a naming scheme).  My recipe is below.

SHELL=/bin/sh

:0fbw
| sed 's/usazdolmon0//'

:0 B:
* \/ usaz*
{ CRYPT=$MATCH }

:0
* ^From:.*\/[^  ].*
{ FROM=$MATCH }

:0
| /home/netsaint/blah

Obviously my second recipe is incorrect but I cannot seem to find one
that works.  Any suggestions would be appreciated.  Thanks for taking
the time to read my post.

Joel Dudley
Unix System Administrator 
DevelopOnline.com
- ----------------------------------------
"For the scientist who has lived by his faith in the power of reason,
the story ends like a bad dream. He has scaled the mountains of
ignorance; he is about to conquer the highest peak; as he pulls
himself over the final rock, he is greeted by a band of theologians
who have been sitting there for centuries."
- - Dr. Robert Jastrow, Founder Goddart Space Flight Institute 





-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.3

iQA/AwUBOhk5Cb4SdmErPHWZEQIw+gCfc48jr3x/+dutP087rStEHdL8I5EAoOhx
NuPKrNetfw+lTQp13vcP+RnB
=kIS6
-----END PGP SIGNATURE-----
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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