On 2007-09-21 23:36:47 -0700, Robert Spier wrote: > At Fri, 21 Sep 2007 22:34:12 +0200, > Werner Fleck wrote: > > With the attached patch applied, the spamassassin plugin adds the > > X-Spam-Level header line to the mail, i.e. a header consisting of > > 'X-Spam-Level: ' followed by a number of asterisks '*' given by the > > spam level. > > How is that header more useful? Please provide an example. >
Most filters can match substrings, few can do numerical comparisons on the contents of a header. So X-Spam-Level: allows the user to choose different actions based on the score. E.g. something like if (header('X-Spam-Level') contains '***************') delete; if (header('X-Spam-Level') contains '**********') moveto('Junk'); if (header('X-Spam-Level') contains '*****') moveto('Suspicious'); hp -- _ | Peter J. Holzer | I know I'd be respectful of a pirate |_|_) | Sysadmin WSR | with an emu on his shoulder. | | | [EMAIL PROTECTED] | __/ | http://www.hjp.at/ | -- Sam in "Freefall"
signature.asc
Description: Digital signature