Jefferis Peterson <jefferis(_at_)petersonsales(_dot_)net> wrote:
To use a sed on messages, you either a] have to know which messages to
use it on, or b] run it globally on all messages.
If a], you could probably filter the messages out on other criteria,
Well, first of all, weren't you talking about mail that has html code
in it? It seems to me you could cut out non-html mail right-off.
:0
* ^Content-Type:.*/html
{ whatever }
If b], how much processor time is used when applying such a thing to all
incoming mail? I.e., is it a beast or a bear? Wise or foolish?
<U>You have be<!--jefferis-->en
ap<!--jefferis-->pro<!--jefferis-->ved.<BR>
[...]
If the html comments don't cross line boundaries, you can strip them out
with sed:
Second, I'm a little confused on the concept. You want to strip out
the bogus <!--jefferis--> comments in order to see if what's left matches
eEvUL spam? But surely nobody but a nogoodnik is going to insert those
comments with your name in the first place. Why don't you look *for*
them instead of *around* them?
:0
* ^Content-Type:.*/html
* $ B ?? <\!--$LOGNAME-->
{ LOG = "This is some really lame cruft!" }
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail