At 08:41 2001-12-05 -0500, Timothy J. Luoma wrote:
1) the MSNBC alerts come through with
------------------------------------------------------
MSNBC Breaking News
------------------------------------------------------
at the top of each message. I'm getting rid of that with egrep, but if
there's a sed way to do it that would be more efficient
Check out the filters for removing freemail (yahoo, hotmail, etc)
adbanners. Because this appears at the top or bottom of the message, the
task is fairly simple.
One such example (direct from the much ignored list ARCHIVES):
<http://www.rosat.mpe-garching.mpg.de/mailing-lists/procmail/2000-09/msg00029.html>
Another (also read the one that follows it in the thread):
<http://www.rosat.mpe-garching.mpg.de/mailing-lists/procmail/2001-11/msg00250.html>
2) Is there a way to make
sed '/For more details/,$d'
case insensitive? That would remove the need for one of the lines below
sed is case sensitive.
sed '/[Ff][Oo][Rr] [Mm][Oo][Rr][Ee] [Dd][Ee][Tt][Aa][Ii][Ll][Ss]/,$d'
This syntax is what leads some people to believe they need to do the same
within procmail rules sometimes, but procmail isn't case sensitive, unless
you explicitly tell it to be. Still, you'll sometimes see people use
similar case-insensitizing regexps.
Alternatley, you can pipe through a perl script that uses a regexp
(reducing your use of two apps and a shell to just one app (if you invoke
it as "|perl someperlfile" versus "|someperlfile").
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail