procmail
[Top] [All Lists]

fgrep catches too much

1997-07-10 11:47:00
Most of you have seen the

* ? fgrep -i -f $SBDIR/list.of.bad.guys

method that I and others use.  I am now wanting to PASS mail in which the
matched string is ONLY in the subject line.  That is, I want to pass
things like

  Subject: What do I do if xxxxx threatens bodily injury?

EXCEPT when xxxxx appears elsewhere in the header.

Here's what I do now, repeated for several xxxx.domains files.

   :0
   * ? fgrep -i -f $SBDIR/nancynet.domains
   * !^X-Loop: noloops_for_wwgrol(_at_)fw(_dot_)hac(_dot_)com
     {
     INCLUDERC=$SBDIR/surespam.rc
     }

Can I use formail to temporarily remove the subject line, and still have
it back where it belongs when I hit the INCLUDERC action?

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