procmail
[Top] [All Lists]

Re: Deleting string in text in body

1998-04-27 18:16:37
On Thu, 16 Apr 1998 02:43:39 -0500 (CDT), dattier(_at_)wwa(_dot_)com (David W. 
Tamkin)
wrote:

To remove the entire first line,

 :0Bbfw # capital B *and* lower-case b
 * ^^.*string
 | tail +2
  :0A
  ! pre-defined address

To remove the string from the first line but leave the rest of the line
intact,

 :0Bbfw # capital B *and* lower-case b
 * ^^.*string
 | sed '1s/string//'
  :0A
  ! pre-defined address

My question is not quite the same but sort of related.
On some lists that I'm on, there are some members who just send so many
posts (often useless) that I just delete all mail from the offending 
member so that I'm not overburdened.  However, I would like to receive
their posts if they are answering something I've posted so as not to be rude.

Thus, would anyone be able to come up with something that would append 
a post to the list's mailbox if e.g. my name is in the text or headers
but otherwise trash the mail?  

Another great traffic-buster would be to detect e.g. posts of 2 lines
(generally these are personal replies of little use to most subscribers)
and delete any such minimal length posts.

Thanks for any help.

Dave Robbins

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Deleting string in text in body, Dave Robbins <=