On Mon, Nov 19, 2001 at 10:08:51PM -0600, David W. Tamkin wrote:
:0bf # search head, filter body
* ^List-Id:(.*\<)?cat polishing
| sed '/Today's Topics/,$ !d'
:0A:
shinycat
Thanks for that solution. I recently did something similar, only I was
filtering subject. After reading the man pages, I did the following.
:0 hwc:
* ^TO.*list-name
| sed '/^Subject: /s/\[wasting_space\] //' >>mbox
:0 ba:
mbox
Using the f flag looks like a better solution, but I never got a good
feel for what it does from the docs I read.
Now suppose I receive mail from a list where I want to filter both the
body and headers -- does anyone see any problems with this next one.
:0 f
* ^TO.*list-name
| sed '/^Subject: /s/\[wasting_space\] //;-3,/^last line of body$/d'
:0 A:
mbox
--
Paul Ackersviller
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail