procmail
[Top] [All Lists]

Re: Cleaning up a message

2001-10-31 15:46:21
At 02:43 AM 10/26/2001, Andrew Edelstein wrote:
[snip]
Oy vey, that's heinous.

:0fb
* ^From:(_dot_)*breakingnews(_at_)cnn\(_dot_)com
* ^Subject:.*Breaking News
|grep '--'

:0A:
!pager(_at_)address

That's usually trouble because grep thinks that '--' is some sort of
attempt to specify an option.  Use
    egrep '[-]-'
or something similar to match two dashes.

And, as someone else pointed out, it only works if the message is
always confined to line(s) with "--" in it(them).

Cheers,
Stan

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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