🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82029

XPAT and white spaces

#82029
From: Julien ÉLIE
Date: Tue, 20 Oct 2009 19:17
67 lines
3153 bytes
Hi,

I have a question about XPAT and its use.

RFC 2980 defines its pattern this way:

   XPAT header range|<message-id> pat [pat...]
   At least one pattern in wildmat must be specified as well.  If there are
   additional arguments the[y] are joined together separated by a single
   space to form one complete pattern.


I wonder how news clients expect the pattern given to XPAT to be parsed.
Should white spaces be allowed?
I think it should in case more than one single space is used.

Is "XPAT subject 1 two  spaces" supposed to be equal to
"XPAT subject 1 two spaces"?
Or should only the second command match "two spaces"?  (I believe that's
the case but I would like to have your opinion.)

Should "XPAT subject 1  leading*" match " leading sample" or not?


* As for servers, do you know how it is implemented?

* As for clients, do you use that command?  And do you expect servers to
properly understand white spaces?



Examples:


DNEWS 5.7e1 answers an article number (even though the request is made
by message-ID) and allows white spaces:

XPAT subject <4add663b$0$16922$892e4abb@news.xennews.com> *Mise en*
221 subject fields follow
3728 Re: Mise en Examen
..

XPAT subject <4add663b$0$16922$892e4abb@news.xennews.com> *Mise  en*
221 subject fields follow
..




INN 2.5.1 does not allow white spaces:

XPAT subject <4add663b$0$16922$892e4abb@news.xennews.com> *Mise en*
221 Header information for subject follows (from the article)
<4add663b$0$16922$892e4abb@news.xennews.com> Re: Mise en Examen
..
XPAT subject <4add663b$0$16922$892e4abb@news.xennews.com> *Mise  en*
221 Header information for subject follows (from the article)
<4add663b$0$16922$892e4abb@news.xennews.com> Re: Mise en Examen
..

-- 
Julien ÉLIE

« -- Chef ! On vient !
  -- On se met en carré ?
  -- Non ! En bosquet ! » (Astérix)
Technical Details
Message-ID: <hbl2cm$chc$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <hbl2cm$chc$1@news.trigofacile.com>
Subject: XPAT and white spaces
Date: Tue, 20 Oct 2009 21:17:36 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp,news.software.readers
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 67
NNTP-Posting-Host: aaubervilliers-151-1-27-37.w83-112.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="ISO-8859-15";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1256066262 12844 83.112.18.37 (20 Oct 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Tue, 20 Oct 2009 19:17:42 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
X-Original-Bytes: 2963