procmail
[Top] [All Lists]

Re: Messed Up Subject Line??? Help

1996-12-11 07:03:54
  > What is wrong with this: 
  > 
  > I want everything with the word - PEN in the Subject line to not come to my
  > mail. This is what I put in
  > 
  > :0:
  > * ^Subject:.*PEN
  > Junk
  > 
  > It *does* work, but it also throws a bunch of other stuff in the trash as
  > well. Just random posts seem to get sent to my JUNK file. 

You are matching PEN, pen, Pen, open, pigpen, etc.  Any subject with the
character "PEN" in either upper or lowercase.

Try this:

  :0 D:
  * ^Subject:(.*\<)?PEN(\>|$)
  Junk

This will trash mail with the subject having the word PEN, only as a
separate word, and only in uppercase.

G'luck.
___________________________________________________________
Alan Stebbens <aks(_at_)sgi(_dot_)com>      http://reality.sgi.com/aks

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