home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.privacy      Discussing privacy, laws, tinfoil hats      112,125 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 110,403 of 112,125   
   D to All   
   40tude Dialog - Scoring/Actions Syntax (   
   23 Jul 24 17:03:08   
   
   From: noreply@mixmin.net   
      
   40tude Dialog > Help [F1] > Index > Scoring syntax:   
   >Scoring/Actions Syntax   
   >Scoring and actions is one of Dialog's most powerful features. The syntax   
   >and actually most of the code is from Jurgen Haible's excellent local mail-   
   >and newsserver Hamster.   
   >What is Scoring?   
   >Scoring is the process of assigning a number between -9999 and +9999 to a   
   >message by applying scoring rules to the message. A scoring rule usually   
   >analyzes one header field of the message and if it this header field matches   
   >a certain text, a score value is assigned. For example, you can create a   
   >scoring rule that assign the highest score value +9999 to all messages that   
   >have your email address in the From header field, so that your messages   
   >always receive a score of +9999.   
   >The score value is shown in the header list in green for positive scores   
   >and in red for negative scores:   
   >Note that the list of headers can be sorted by score (with or without   
   >threading), so scoring can be used to visually organize and separate   
   >important from unimportant messages.   
   >A scoring rule looks like this:   
   > =+9999 From "Joe Average"   
   >This simple scoring rule assigns the score +9999 to all articles that have   
   >the term "Joe Average" in the From header field.   
   >What are Actions?   
   >Actions are an extension to scoring. While scoring rules simply assigns a   
   >score value based on a condition, an action rule does something with or on   
   >the message, e.g. there are actions to copy or move messages that meet a   
   >certain condition to another folder.   
   >While scoring rules start with =,- or +, action rules always start with !.   
   >An action rule looks like this:   
   > !copy(MyPosts) From "Joe Average"   
   >This rule copies all articles that have the term "Joe Average" in the From   
   >field header to the folder "MyPosts".   
   >Processing   
   >Usenet articles are scored twice in Dialog. When you get headers in a   
   >group the scoring rules are applied to the available, limited number of   
   >headers, however when you retrieve the complete body of the message, the   
   >message is scored again and this time all headers can be scored.   
   >The scoring and action rules are stored together in one file, the score   
   >file, which you can access by selecting Settings, Scoring and actions from   
   >Dialog's main menu.   
   >When you edited the score file the changed rules are applied to newly   
   >retrieved messages only. If you want to apply the new or changed rules to   
   >existing groups, select Group, Apply scoring and actions to selected   
   >groups from Dialog's main menu.   
   >Note that the score file is Unicode aware. You can match on terms with   
   >characters from the complete Unicode range.   
   >Syntax by samples   
   >The score file consists of separate sections, with each section having a   
   >series of rules. The rules in a section are only applied to groups with   
   >name matches the section identifier. The section identifier is written in   
   >brackets.   
   >Example:   
   > [*]   
   > =+9999 From "Joe Average"   
   > [news.software.readers]   
   > !copy(MyPosts) From "Joe Average"   
   >The first scoring rule in this example is applied to all newsgroups, since   
   >the section identifier is a wildcard, that matches all group names.   
   >The second action rule in this example is only applied to the   
   >news.software.readers group, but ignored for all other newsgroups.   
   >Sample section identifiers:   
   > [*]      rules below this identifier are applied to all newsgroups   
   > [**]     rules below this identifier are applied to all newsgroups   
   >          and to incoming email   
   > [email.*]  rules below this identifier are applied to all incoming   
   >            emails (but not to newsgroups)   
   > [email.private]  rules below this identifier are applied to incoming   
   >                  emails for the identity named "private"   
   > [group.name.one group.name.two]  rules below this identifier are   
   >                                  applied to group.name.one and   
   >                                  group.name.two only   
   > [* -newusers]  rules below this identifier are applied to all   
   >                newsgroups, except for groups that have the term   
   >                "newusers" in their name   
   >A scoring rule start with =,+ or -. When an article is scored, it starts   
   >with a score of 0 and a rule can either increase (+) or decrease (-) the   
   >score or it can assign a score and stop processing any further scoring   
   >rules (=).   
   >Example:   
   > [*]   
   > +9999 From "Joe Average"   
   > -1000 From "Joe Average" #Does this make sense?   
   > =+8000 From "Joe Average"   
   > =+7000 From "Joe Average"   
   >Let's say a message from Joe Average is scored with the preceding score   
   >file. What final score will the message receive? The message starts with a   
   >score of 0, then 9999 is added, then 1000 is decreased, so after the first   
   >two lines it has a score of +8999. The next line assigns a score +8000 to   
   >the message, ignoring the score the message had previously and terminates   
   >the processing of any further scoring rules, so the last line is ignored   
   >completely and the message has a final score of +8000.   
   >Note that all text after the character # is ignored in the score file.   
   >Until now, we only scored on the From field of messages. When retrieving   
   >article headers in an XOver operation you can score on the following   
   >headers:   
   > From         The From header field   
   > Subject      The Subject of the message   
   > Date         The Date of the message   
   > Message-ID   The Message-ID of the message   
   > References   The contents of the References header field   
   > Bytes        The number of bytes of the message   
   > Lines        The number of lines of the message   
   > XRef         The contents of the XRef header field   
   > XPost        A virtual, numerical field holding the number of groups this   
   >              message was posted to.   
   > Age          A virtual, numerical field holding the age of the article in   
   >              numbers of days.   
   > Score        The score of the message   
   >When scoring on fields that have numerical values you can compare if the   
   >number is equal, greater or smaller using the percentage sign and the   
   >following syntax:   
   > -1000 Age %=2   
   > -2000 Lines %>5000   
   > +100  Bytes %<2000   
   >The first rule above decreases the score by 1000 if the message is two   
   >days old (but not if its older or newer!).   
   >The second rule decreases the score by 2000 if the message has more than   
   >5000 lines.   
   >The third rule increases the score by 100 if the message is smaller than   
   >2000 bytes.   
   >When retrieving bodies for articles or when receiving emails all headers   
   >are available for scoring. You can then additionally score on "Header".   
   >The variable "Header" holds the complete list of header fields of the   
   >message, separated by CRLF pairs. To score on this you might need to use   
   >regular expressions.   
   >Example:   
   > =+9000 Header "X-MyUniqueXHeader:"   
   > =+9000 Header {^(X-MyUniqueXHeader:)}   
   >These two lines do basically the same. The first uses a plain string match   
   >on "X-MyUniqueXHeader:" somewhere in the list of headers, while the second   
   >uses a regular expression. The "^" in this regular expression makes sure   
   >that "X-MyUniqueXHeader" is actually the first term on a line.   
      
   [continued in next message]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca