I have a suggestion, but it's probably a BAD way of doing it - but HEY! It
will work ;)
:0:
* ? grep -i "foo"
whereveryoulike
I haven't even tested this, seems like it *should* work...
Poff
On Mon, 30 Dec 2002, Mike Chambers enslaved 16 hundred monkeys to type:
Date: Mon, 30 Dec 2002 12:14:56 -0500
From: Mike Chambers <mchamber(_at_)macromedia(_dot_)com>
To: procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Searching for single word
I am trying to create a rule that will search the body of an email and
look for a particular word (FOO).
here is what i have thus far:
* ()\<\/(FOO)\>
i also have:
*(foo|FOO)*
neither of them work. The second catches everything. I have searched the
archives for a solution, and found the first one, but it isn't working
for me either.
So:
1. does anyone see anything wrong with either of my rules above?
2. does anyone have any suggestions?
I assuming that the above rules search the entire email. How do I limit
it to the Body? What about the body and subject (just us an | (or))?
I am just learning regular expressions, so I am sure I have done
something wrong.
I appreciate any input...
mike c
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
poff(_at_)sixbit(_dot_)org
SDF Public Access UNIX System - http://sdf.lonestar.org
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail