block-list-formats-fr

From Microformats Wiki
Jump to navigation Jump to search

formats liste de blocage

Précédents essais sur les formats de listes de blocage formats. Fait partie de l'effort pour permettre une plus grande portabilité du réseau social.

formats

rn kill file

Usenet/netnews kill files. Pour les détails du kill file implémenté par le programme de lecture de nouvelles "rn", voir les killfile faq.

Rn and trn
==========
5. What is the general syntax of a KILL file entry?
  The general style for building a kill line is:

		/pattern/modifiers:command

  The <pattern> is the pattern to use to pick articles.  This is a regular
expression, like those used in grep.  You can use any case in the pattern; 
t won't matter, unless you use a modifier to make rn case-sensitive.
  The <modifiers> tell rn where to look for the pattern - the subject
(default), one of the other header lines, or the entire article, as examples
of the usual modifiers used.
  The command tells what to do with the article once it's been selected.
This is usually either to kill it or to mark it unread.

  If no modifier appears before the colon, only the subject line of the
article is searched.  More than one command can be performed by using
the style:

		/pattern/modifier:command:command 

Thus, for instance, you can use j and = together to see the exact subject
lines being killed.  (See below for the explanation of j and =.)

6. What are the available modifiers and commands?

  The modifiers and commands are all explained in the rn man page, but here
are some of them:
	Modifiers:
	   a: all, look through the entire article for the pattern
	   h: look through the header of the article for the pattern
	   f: look at only the 'From:' header (trn 3.0)
	   c: Make the pattern case sensitive
	   H: added in trn 3.1, this expands the f: above to any header
	Commands:
	   m   mark as unread
	   j   mark as read
	   =   show subject line

...
7. How do I kill a specific subject?

  The easiest way to kill a subject line is to kill it from within the
newsgroup.  When the subject line comes up that you want to kill, instead
of using 'n' to skip that article or 'k' to kill the subject for that 
session, type 'K'.  The subject line will then be entered into your KILL
file for that group.  If you want to put that line into your global KILL
file, you'll have to do that yourself.

  To kill a general subject, ie any 'test' messages, put in the pattern:

			/test/:j

This will kill anything with the word 'test' in the subject line.

8. How do I kill postings from a specific person?

  To kill articles from a single poster, you need to know the userid and
nodename of the poster; for this example we'll use noone@anywhere.all.

		/^From:.*noone@anywhere\.all/h:j

This searches the entire header for any line starting with 'From:', anything
at all, and then 'noone@anywhere.all' in it.  This is faster than if the
beginning-of-line character (^) had been left out:

		/From:.*noone@anywhere\.all/h:j

If this were used, something like 'Subject: Re: Articles from:
noone@anywhere.all' would also get killed.

9. How do I kill articles from a specific site?

  For articles from a particular site, just remove the 'noone' from the
previous lines, and articles from the machine 'anywhere.all' will be killed.
So, the line would be:

		/^From:.*@anywhere\.all/h:j

10. How do I kill followups?

  To kill anything that is a followup to any article, use this pattern:

		/Re:/:j

This kills anything with 'Re:' in it.  (This includes articles of the form
'Subject: X (Was Re: Y)'.)

  If you just want to kill the direct followups, without the changes in
subject, you have to make it clear where the Re: is in the line:

		/^Subject: Re:/:j

voir aussi