procmail
[Top] [All Lists]

Re: Can a recipe span lines?

2003-01-16 12:18:33
At 12:22 2003-01-16 -0600, Mike Kercher wrote:
I have the recipe below in my /etc/procmailrc  As you can see, the line
is very long.  Can I make the condition wrap to the next line for ease
of editting/viewing?

'man procmailrc'  search for "continue".

Perl, C, and even shell (as well as many other languages) programmers are familiar with the backslash as a line continuation character.

:0 H

FTR, 'H' is the default...

    {
        :0
        /dev/null

You MUST have CLOSING braces, and there's no need to brace if you have only one action.

:0
* ^Subject.*(penis|savings|dvd|exciting|bestiality|sex|viagra|nude|money|\
        100|Mortgage|Casino|\$| Free |Panty|gamble|deal| Win |Life Insurance|\
        e weight|improve your|Prize|Happy Father|Million Dollar|vitamin)
/dev/null


FTR, I use scoring ('man procmailsc')for this sort of stuff - assigning "point" values to different keywords, symbols, and combinations thereof. This allows you to use some keywords which by themselves aren't an indicator of spam, but several of them together are more likely to be. If the total exceeds some threshold, toss it.

---
 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