The procmail maillist list isn't working for me... may be down.  So I'll try
here..


Basically I want search for key terms only after stripping the HTML from the
message because many spammers split up words with fake html tags, ie
vi<ewgfweg>agr<grwj>a.

The sed trick strips out all html-like tags.  Cool.  Except I'm trying to
figure out a way to un-do the stripping if the words I'm looking for isn't
in the body of the message after all.  So far the stripped message gets
delivered to the mailbox regardless.
I need to do something like this:

preserve_copy_of_message_here
  :0fwb
  | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'
  :0B
  * (v'agra)
  {
    OBSCENE_=adult-trap
    :0
    /dev/null
  }
if OBSCENE is set, then do nothing cause message went to /dev/null, else
send the original message to the mailbox.

Any ideas?
-eric wood


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to