procmail
[Top] [All Lists]

Comments?

1997-06-17 08:12:00

Of course I'm going to test this :-) but any experts notice 
a problem right away?  (My first try at "weighting")

# Stuff that has too many red flag words in body
:0 B
* !^X-Loop: noloop(_at_)noloop(_dot_)nlp
* -95^1  ^.*$
* 100^1  money|success|opportunity|wealth
{
  :0c:
  $SPAMFOLDER

  :0fhw  # double the head; second head is now part of body
  | sed -e H -e '$ G'

  :0fhw  # invert first head and slip in message after it (before second head)
  | formail -rtA"X-Loop: noloop(_at_)noloop(_dot_)nlp" ; cat 
$SBDIR/maybespam.msg

  :0     # send it all out
  ! -t

}

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