Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Rules

Chapter 12. Rules

Rules are the building blocks of SpamAssassin. Every test performed on a message is based upon a rule, with an associated score. Rules were covered briefly in Chapter 7.

User-definable rules are based on a Perl regular expression, also called a regex. Some knowledge of regexes is required to write new rules. There are many good sources of information on Perl regular expressions. The standard Perl distribution contains a quick-start document on regular expressions, a longer regular expressions tutorial, and a syntax definition. To access these, use the perldoc command:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint