"Fossies" - the Fresh Open Source Software Archive

Member "leafnode-1.12.0/filters.example" (30 Jan 2009, 3659 Bytes) of package /linux/misc/leafnode-1.12.0.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ## Leafnode filter configuration file.
    2 ## The file format is described on the applyfilter(8) manual page.
    3 ##
    4 ## This file is only effective if included by leafnode's main
    5 ## configuration file. (Use the filterfile option.)
    6 ##
    7 ## Note: comments MUST start in the leftmost column with a "#" letter.
    8 ## You cannot add a comment at the end of a line.
    9 ##
   10 ## When using any example from below, be sure to remove the leading "# ".
   11 ##
   12 
   13 ## The following regexp matches crossposts to alt.flame:
   14 # ^Newsgroups:.*[, ]alt.flame($|,)
   15 
   16 ## The following regexp matches messages that contain "income", "inCoMe",
   17 ## "INCOME" (and any other lower-/uppercase combination) in the Subject
   18 ## header. (?i) switches the PCRE_CASELESS option on for the remainder
   19 ## of the regular expression, which causes case insensitive matching:
   20 # ^Subject:.*(?i)income
   21 
   22 ##{ The examples below have courteously been provided by Michael R. McCarrey.
   23 ##  Again, to enable them, remove the leading "# ".
   24 
   25 ## These two entries refer to programs that are very popular
   26 ## with spammers. Filtering them will reduce a very large number
   27 ## of spam posts.
   28 #
   29 # ^X-Newsreader.*NNTP.SCRIBBLER
   30 # ^X-Newsreader:.*BNews2004v20
   31 
   32 ## Filter "User-Agent" header
   33 # ^User-Agent:.*G2/0.2
   34 
   35 ## Filter "Path" header
   36 # ^Path:.*bigpond.com
   37 # ^Path:.*jaring.my
   38 
   39 ## Filter "Content" headers
   40 ## This filter will eliminate those annoying HTML posts
   41 # ^Content-Type:.*text/html
   42 
   43 ## Filter "Subject" headers
   44 ##
   45 ## You have to "train" your filters through trial and error. Spammers and
   46 ## nasty posters have developed clever ways of circumventing filters
   47 ## which require a level of creativity on your part in construction of
   48 ## filters designed to stop their messages from reaching you.
   49 #
   50 ## Exercize care in their constriction, because it is possible to filter
   51 ## out legitimate and useful postings. It's best to check your syslog often
   52 ## to see if you're not eliminating posts you really want to see.
   53 #
   54 # ^Subject:.*\$30\,000.*INCOME EVERY DAY  GUARANTEED FOR ONE YEAR
   55 # ^Subject:.*\$30,000(?i).*GUARANTEED.*
   56 #
   57 # ^Subject:.*(?i)income.*
   58 # ^Subject:.*(?i)money.*
   59 # ^Subject:.*(?i)profit.*
   60 # ^Subject:.*(?i)always.*wanted.*
   61 # ^Subject:.*(?i)wanted.*always.*
   62 # ^Subject:.*(?i)wealth.*
   63 # ^Subject:.*(?i)money.*
   64 # ^Subject:.*(?i)look.*at.*this.*
   65 # ^Subject:.*(?i)stamina.*
   66 # ^Subject:.*(?i)staying.*power.*
   67 # ^Subject:.*(?i)Pre.*Baby Making Practice.*
   68 
   69 ## Filter "From" headers
   70 # ^From:.*([!-@])kensmithiscool([!-@])<kensmithiscool@excite\.com>
   71 
   72 ## Filter "Organization" headers
   73 ## Filtering on this header allows one to eliminate offensive
   74 ## postings that originate from problematic organizations.
   75 #
   76 # ^Organization:.*http://groups\.google\.com
   77 # ^Organization:.*UFMCC
   78 # ^Organization:.*The Gurkian Way
   79 # ^Organization:.*Back OFF!
   80 
   81 ## If you dislike postings that have been cross-posted to
   82 ## groups that you have no interest in, you can write
   83 ## filters to deal with that situation.
   84 #
   85 ## Each entry begins with the "^" character, indicating the
   86 ## keyword to be matched, "Newsgroups:", is anchored at
   87 ## the left of the line.
   88 #
   89 ## the "." and "*" match any character or series of characters
   90 ## occuring before any normal letters. These additional
   91 ## characters may or may not be present which is why the
   92 ## listed group names are pre and postfixed by ".*".
   93 #
   94 ## Pay particular attention to the "escapes" in the different
   95 ## group names. The "." period has special meaning in regex, so
   96 ## it must be escaped when it is to be taken literally. The
   97 ## backslash, "\" preceeding it serves this purpose.
   98 #
   99 # ^Newsgroups:.*alt\.atheism\.holysmoke.*
  100 # ^Newsgroups:.*alt\.religion\.scientology.*
  101 # ^Newsgroups:.*talk\.politics\.misc.*
  102 ##}