Re: Arguments to checkgroups control messages

Julien ÉLIE <[email protected]> Fri, 5 Jun 2009 07:39:32 +0200
Newsgroups gmane.ietf.usenet.format
Organization TrigoFACILE -- http://www.trigofacile.com/
Message-ID <B4A582B00D8848F087C8FC667EC2B5C9@Iulius>
Hi all,

>>> These lines are equivalent:
>>>
>>>    Control: checkgroups de !de.alt #2009021301
>>>    Control: checkgroups !de.alt de #2009021301
>>>
>>> Maybe it should be highlighted in the text (so that it is not
>>> the last matching entry that prevails for each newsgroup).

The problems comes from that, in RFC 3977 (NNTP), when something
is matched, it is always because of the last entry:

  4.2.  Wildmat Semantics

   A wildmat is tested against a string and either matches or does not
   match.  To do this, each constituent <wildmat-pattern> is matched
   against the string, and the rightmost pattern that matches is
   identified.  If that <wildmat-pattern> is not preceded with "!", the
   whole wildmat matches.  If it is preceded by "!", or if no <wildmat-
   pattern> matches, the whole wildmat does not match.

   For example, consider the wildmat "a*,!*b,*c*":

   o  The string "aaa" matches because the rightmost match is with "a*".

   o  The string "abb" does not match because the rightmost match is
      with "*b".


In RFC 5537 (USEPRO), the order does not matter and the semantics
of "de !de.alt" works differently.
That's why this way of parsing should be better highlighted in USEPRO.

-- 
Julien ÉLIE

« Inter pradendum sit saepe parumque bibendum. »