Article View: news.software.nntp
Article #82992Re: Another cancel message filing problem
From: Russ Allbery
Date: Tue, 13 Apr 2010 05:56
Date: Tue, 13 Apr 2010 05:56
34 lines
2842 bytes
2842 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> "Adam H. Kerman" <ahk@chinet.com> writes:
>>> Julien ALIE <iulius@nom-de-mon-site.com.invalid> wrote:
>>>> Hmm... If there is a final WSP after control-command, INN <= 2.5.1
>>>> does not honour the cancel: ARTidok expects '>'+'\0' at the end of a
>>>> message-ID. INN 2.5.2 uses for innd the new function
>>>> IsValidMessageID which strips whitespaces (boolean argument "true"
>>>> for that behaviour).
>>>> I do not know what other news servers do about that final WSP. I
>>>> hope they understand it well.
>>> If it's bad syntax, why is it a good thing to strip? Why not reject
>>> it? Strictly interpreting syntax in this regard should be preferred.
>> The syntax allows trailing whitespace. See the *WSP before the CRLF.
> Pardon me. I seem to have written exactly the opposite of what I should
> have. If it's good syntax, why give it first to an argument to strip it?
> The parser should be written to recognize it directly, which I thought
> was what you were getting at in your other followup.
Oh, it's just for convenience. There are a lot of places in INN where one
has to pull a message ID out of headers but want only the message ID
without any surrounding whitespace, so it's collected in one place. You
can think of IsValidMessageID as being part of the parser.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<878w8r520b.fsf@windlord.stanford.edu>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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mailReferences:
<hpoa7p$qmj$1@snarked.org> <hpum4r$fg4$1@news.trigofacile.com> <hq0c20$81t$4@news.albasani.net> <874ojg439r.fsf@windlord.stanford.edu> <hq0qqi$t4d$3@news.albasani.net>Show Full Headers
Complete Article Headers
Message-ID: <878w8r520b.fsf@windlord.stanford.edu> Subject: Re: Another cancel message filing problem Date: Mon, 12 Apr 2010 22:56:36 -0700 From: Russ Allbery <rra@stanford.edu> References: <hpoa7p$qmj$1@snarked.org> <hpum4r$fg4$1@news.trigofacile.com> <hq0c20$81t$4@news.albasani.net> <874ojg439r.fsf@windlord.stanford.edu> <hq0qqi$t4d$3@news.albasani.net> 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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 34 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet-its.stanford.edu 1271138197 576 171.67.225.134 (13 Apr 2010 X-Complaints-To: news@usenet-its.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:m8+91imsGHTsDMwsY9M0ZLpN6vE= X-Original-Bytes: 2599