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,404 of 112,125   
   D to All   
   40tude Dialog - Scoring/Actions Syntax (   
   23 Jul 24 17:03:08   
   
   [continued from previous message]   
      
   >Regular expressions in the score file need to be written in braces as with   
   >the preceding example.   
   >Until now we only saw scoring rules, which assign or chang the score value   
   >of messages.   
   >Action rules do something with or on the article. Available action are:   
   > !watch                 Sets the watch flag on the message   
   > !ignore                Sets the ignore flag on the message   
   > !unsetwatchignore      Unsets any ignore or watch flag   
   > !retrieve              Immediately retrieved the message body   
   > !mark                  Marks the message for later retrieval   
   > !unmark                Removes any marked for retrieval flag   
   > !keep                  Sets the keep flag on the message   
   > !unkeep                Unsets the keep flag on the message   
   > !markread              Marks the message read   
   > !markunread            Marks the message unread   
   > !delete                Deletes the message   
   > !setcolor(foreground_color;background_color)   Sets the foreground and   
   >                        background color of the message in the header list   
   > !move(target_folder)   Moves the message to the target_folder   
   > !copy(target_folder)   Copies the message to the target_folder   
   >Note that multiple actions using the same condition can be separated by   
   >commas.   
   >Examples:   
   > !watch,retrieve,keep From "Joe Average"       # set the watch and keep flag   
   >                                                 and retrieve the article   
   > !ignore,markread Lines %>200                  # set the ignore flag and mark   
   >                                                 the article read   
   > !setcolor(navy;aqua) From "Joe Average"       # set the foreground color to   
   >                                                 navy blue and background   
   >                                                 color to aqua   
   > !setcolor(default;$F39CB5) From "Joe Average" # Don't change the foreground   
   >                                                 color and change background   
   >                                                 color to light   
   > !copy(MyPosts) From "Joe Average"             # Copy the message to the   
   >                                                 MyPosts folder   
   > !retrieve Score %>1000                        # Retrieve the article is the   
   >                                                 score is above 1000   
   >Copy and Move actions   
   >There is an extended syntax for copy and move action. Say you want to move   
   >all emails from a mailing list to a separate folder. You can use:   
   > [email.*]   
   > !move(%X-Mailing-List%) Header {^(X-Mailing-List:)}   
   >The section identifier here says that the following rule should be applied   
   >to emails only.   
   >The !move action itself looks for a X-Mailing-List: header in the message,   
   >but instead of copying the message to a folder with a fixed name, it is   
   >copied to a folder named after the value of the X-Mailing-List header   
   >field itself. Say, e.g. you receive a message which has a "X-Mailing-List:   
   >speedboats@yahoogroups.com" header, then this message is moved to the   
   >"speedboats@yahoogroups.com" folder. By now, you might have noticed that   
   >this is a very powerful rule for organizing mailing list into folders.   
   >A variation of this is:   
   > [email.*]   
   > !move(@%X-Mailing-List%) Header {^(X-Mailing-List:)}   
   >Notice the additional "@" in the target folder expression. If this @ is   
   >present, the value of the header field is simply searched for the   
   >character @ and only the text before the first found @ is used as the   
   >target folder. Again, for a message which has a "X-Mailing-List:   
   >speedboats@yahoogroups.com" header field, the message would be moved to the   
   >"speedboats" folder, instead of the "speedboats@yahoogroups.com" folder.   
   >Almost virtual groups   
   >There are no virtual groups in Dialog, however you can simply copy or move   
   >articles from one group to another manually or by using an action rule:   
   > [a.binary.group]   
   > !move(a.binary.group;NewsserverOne) bytes %>0   
   >All previous examples used a folder as the target of the copy/move   
   >operation. This rule uses a newsgroup as the target. Note that the name of   
   >the target group and the name of the newsserver where this group is from   
   >is separated by a semicolon.   
   >Say, you are using two newsservers named "NewsserverOne" and   
   >"NewsserverTwo". Both newsservers have the group "a.binary.group", but   
   >while most of the messages are the same in this group on the two servers,   
   >there are some that are not available on the other server.   
   >The first line in the preceding sample makes sure that the following rule   
   >is only applied to the "a.binary.group" newsgroup.   
   >The rule itself simply says to move all articles (since the condition   
   >"bytes %>0" is always met) to the group a.binary.group of NewsserverOne.   
   >If you retrieve message headers for this group from server NewsserverOne,   
   >the rule is ignored, since all articles go to the correct group anyway. If   
   >you retrieve message headers from NewsserverTwo for this group though,   
   >they will not show up in "a.binary.group (NewsserverTwo)", but in   
   >"a.binary.group (NewsserverOne)".   
   >The result is that you joined messages from the same group, but different   
   >newsservers into one group in Dialog. This is especially useful for binary   
   >groups to fill missing multipart postings.   
   >Some further examples with inline comments   
   > [*]                         # apply the following rules to all newsgroups   
   > =+9999 From "Your Name"     # "my" articles get highest score   
   > =+9999 Message-ID your.unique.fqdn   
   > =+5000 References your.unique.fqdn  # Load articles referencing one of   
   >                                       "my" articles:   
   > =+1000 Subject "40tude dialog"      # Certainly, we are very interested in   
   >                                       articles regarding 40tude dialog   
   > =-1000 Subject "MAKE 40tude dialog FAST!!!!"    # And certainly, we ignore   
   >                                                   really silly suggestions   
   > # (please notice, that this entry would never match, as subjects containing   
   > # "40tude dialog" would match the "="-entry above)   
   > # The examples below use group-specific score-entries by starting a new   
   > # section in the scorefile with a "[...]"-line.   
   > # Filter out "big" articles, that do not have "FAQ" in subject and are not   
   > # posted in an announce-group:   
   > [* -announce]   
   > -10 Lines %>200   
   > -10 Bytes %>10000   
   > +20 Subject FAQ   
   > -10 Xpost %>3              # Ignore articles posted to more than three groups   
   > [* -newusers -neubenutzer] # Ignore articles with subjects containing "!!!"   
   >                              in all groups except the newusers-groups:   
   > -1 Subject "!!!"   
   > # Some groups may be more readable, if you filter out all articles and   
   > # only load specific ones immediately, e.g.:   
   > [group.name.one group.name.two group.name.three]   
   > -1 Message-ID *   
   > +1 Subject "interest1" "interest2" "interest3" "interest4"   
   > +1 From "user1" "user2" "user3" "user4"   
   > #Action examples   
   > [*]                                    # apply the following rules to all   
   >                                          groups   
   > !watch,retrieve,keep From "Your Name"  # set the watch and keep flag and   
   >                                          retrieve the article   
   > !ignore,markread Lines %>200           # set the ignore flag and mark the   
   >                                          article read   
   > !setcolor(navy;aqua) From "Your Name"  # set the foreground color to navy   
   >                                          blue and background color to aqua   
      
   [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