Thread View: news.software.nntp
26 messages
26 total messages
Started by D. Stussy
Fri, 09 Apr 2010 22:37
Cancel message for article of group(s) not carried?
Author: D. Stussy
Date: Fri, 09 Apr 2010 22:37
Date: Fri, 09 Apr 2010 22:37
17 lines
1531 bytes
1531 bytes
Should these be filed in control.cancel - because they are control messages.... OR Should these be filed in junk, because they pertain to groups not carried (wanttrash=true)? Which rule takes precedence? Follow-up: If they should end up in junk, are they still processed as control messages (and thus the post, also filed in junk, that they cancel is cancelled - if cancels are enabled)?
Re: Cancel message for article of group(s) not carried?
Author: Jeffrey M. Vinocur
Date: Sat, 10 Apr 2010 22:14
Date: Sat, 10 Apr 2010 22:14
24 lines
1820 bytes
1820 bytes
In article <hpoa7p$qmj$1@snarked.org>, D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote: >Should these be filed in control.cancel - because they are control >messages.... > > OR > >Should these be filed in junk, because they pertain to groups not carried >(wanttrash=true)? > >Which rule takes precedence? I'm not sure that these are "rules" per se, but rather implementation details. But since the control message does not necessarily contain any information about the group(s) of the original article (for that matter, there may not even *be* an original article), there's no way for the software to act on that reliably. -- Jeffrey M. Vinocur jeff@litech.org
Re: Cancel message for article of group(s) not carried?
Author: D. Stussy
Date: Sun, 11 Apr 2010 00:47
Date: Sun, 11 Apr 2010 00:47
36 lines
2413 bytes
2413 bytes
"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message news:hpqt81$r3f$1@puck.litech.org... > In article <hpoa7p$qmj$1@snarked.org>, > D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote: > >Should these be filed in control.cancel - because they are control > >messages.... > > > > OR > > > >Should these be filed in junk, because they pertain to groups not carried > >(wanttrash=true)? > > > >Which rule takes precedence? > > I'm not sure that these are "rules" per se, but rather > implementation details. Yes, they are INN's implementation. However, it still follows certain rules. However, we aren't told which takes precedence, and that's what I'm asking. > But since the control message does not necessarily contain any > information about the group(s) of the original article (for that > matter, there may not even *be* an original article), there's no > way for the software to act on that reliably. So, where are you saying it should be filed? 1) Control articles get filed into a "control.*" pseudo-group (if it exists; "control" otherwise), or 2) Articles not filable to any group carried by the server go into "junk" (wanttrash=true) or are rejected (wanttrash=false).
Re: Cancel message for article of group(s) not carried?
Author: Russ Allbery
Date: Sun, 11 Apr 2010 01:22
Date: Sun, 11 Apr 2010 01:22
18 lines
1637 bytes
1637 bytes
"D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:
> Should these be filed in control.cancel - because they are control
> messages....
> OR
> Should these be filed in junk, because they pertain to groups not
> carried (wanttrash=true)?
Looking at the source code, the control filing rule takes precedence over
putting the message in junk.
--
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.
Re: Cancel message for article of group(s) not carried?
Author: D. Stussy
Date: Sun, 11 Apr 2010 06:29
Date: Sun, 11 Apr 2010 06:29
49 lines
3014 bytes
3014 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:8739z2pytx.fsf@windlord.stanford.edu... > "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes: > > > Should these be filed in control.cancel - because they are control > > messages.... > > > OR > > > Should these be filed in junk, because they pertain to groups not > > carried (wanttrash=true)? > > Looking at the source code, the control filing rule takes precedence over > putting the message in junk. Interesting, because I'm actually finding them in junk. I would expect them to be in control.cancel. Sample message: Path: news.snarked.org!feeds.phibee-telecom.net!news-out1.kabelfoon.nl!newsfeed.k abelfoon.nl!bandi.nntp.kabelfoon.nl!xlned.com!feeder1.xlned.com!news.alt.ne t!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail From: vroomvw@yahoo.com Newsgroups: alt.binaries.assbite Subject: cancel <4BBF21F8.5040409@yahoo.com> References: <4BBF21F8.5040409@yahoo.com> Control: cancel <4BBF21F8.5040409@yahoo.com> Date: 09 Apr 2010 12:54:32 GMT Lines: 1 Message-ID: <4bbf2385$0$14008$c3e8da3@news.astraweb.com> Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: 00ab1b0b.news.astraweb.com X-Trace: DXC=AaXaTL<MO6=5WGRN4JSiW2L?0kYOcDh@:[^oANOZPWM0`E@HQo>bFS;HJ;nOJW1Ml83M\Y0 JIJ\V:d0:cIYRGgh> Xref: news.snarked.org junk:531909 This message was cancelled from within Mozilla. --------------------- I don't carry binary groups, let alone groups with names like the above, yet the Xref header tells me it's been filed into "junk", not "control.cancel." Is this being filed in junk because there's no "Approved" header? (I also don't know why my peer isn't respecting my feed mask. "@*.bina*" is among my requested mask.)
Another cancel message filing problem - Re: Cancel message for article of group(s) not carried?
Author: D. Stussy
Date: Sun, 11 Apr 2010 20:30
Date: Sun, 11 Apr 2010 20:30
30 lines
2238 bytes
2238 bytes
I've also noticed another cancel message filing problem. This one gets
filed into "control", not "control.cancel". I suspect this is because the
Control header is white-space-folded, and thus the header is finding a
newline before it finds the second parameter. Maybe it needs to be
"unfolded" before it's parsed? The article:
Path:
news.snarked.org!feeds.phibee-telecom.net!news.panservice.it!feeder.news.ti
n.it!spool.news.tin.it!not-for-mail
From: enos76 <enos76@gmail.com>
Subject: Cancel
Newsgroups: it.lavoro.informatica
Control: cancel
<25fcffc8-e8dc-4aea-bb89-38cfdbde7fbf@t23g2000yqt.googlegroups.com>
X-Face:
#p-c\M|b?XWJ$;/x};~yP]a2$E$ZPUANlE.D:3st>.stp6Cl>ON_OmK:]9%JS3Pnai<Ea"06fhe
`QMoR4F){lN}uv#(y)(Y8~*.eu
...
Message-ID: <4bc22b0b$0$1142$4fafbaef@reader1.news.tin.it>
...
NNTP-Posting-Host: 95.245.237.107
X-Trace: 1271016204 reader1.news.tin.it 1142 95.245.237.107:8426
X-Complaints-To: Please send abuse reports to abuse@retail.telecomitalia.it
Ignore
Article canceled by author using pan 0.133
...
Re: Another cancel message filing problem
Author: Julien ÉLIE
Date: Sun, 11 Apr 2010 21:21
Date: Sun, 11 Apr 2010 21:21
37 lines
2649 bytes
2649 bytes
Hi Dieter,
> I've also noticed another cancel message filing problem. This one gets
> filed into "control", not "control.cancel". I suspect this is because the
> Control header is white-space-folded, and thus the header is finding a
> newline before it finds the second parameter. Maybe it needs to be
> "unfolded" before it's parsed?
>
> Control: cancel
> <25fcffc8-e8dc-4aea-bb89-38cfdbde7fbf@t23g2000yqt.googlegroups.com>
I thought you would have wanted to reject the article because its
syntax is not valid :)
No folding is allowed in the Control: header field.
According to RFC 5536 and 5537:
control = "Control:" SP *WSP control-command *WSP CRLF
control-command = verb *( 1*WSP argument )
Cancel-command = "cancel" Cancel-arguments
Cancel-arguments = 1*WSP msg-id
The control article you spoke about does not have the syntax of
a cancel article ("cancel" + at least a message-ID on a single line)
so it is filed into "control".
Do you know the name of the news client that generated that control article?
--
Julien ÉLIE
« -- Ouvre l'œil, et le bon !
-- L'autre, je peux pas encore l'ouvrir, je risque pas de me tromper ! »
(Astérix)
Re: Another cancel message filing problem
Author: Viktor Kafke
Date: Sun, 11 Apr 2010 21:29
Date: Sun, 11 Apr 2010 21:29
15 lines
1637 bytes
1637 bytes
Julien ÉLIE wrote: >> Control: cancel >> <25fcffc8-e8dc-4aea-bb89-38cfdbde7fbf@t23g2000yqt.googlegroups.com> > > Do you know the name of the news client that generated that control article? I assume he does. Look at the end of D's article: >> Article canceled by author using pan 0.133 :-) -- Vik...
Re: Another cancel message filing problem
Author: Xavier Roche
Date: Mon, 12 Apr 2010 06:28
Date: Mon, 12 Apr 2010 06:28
7 lines
1554 bytes
1554 bytes
Julien ÉLIE a écrit :
> No folding is allowed in the Control: header field.
> The control article you spoke about does not have the syntax of
> a cancel article ("cancel" + at least a message-ID on a single line)
Err, you mean that the line is badly splitted ? The line split is valid
for all headers ?
Re: Another cancel message filing problem
Author: Russ Allbery
Date: Mon, 12 Apr 2010 06:34
Date: Mon, 12 Apr 2010 06:34
26 lines
2468 bytes
2468 bytes
Xavier Roche <xroche@free.fr.NOSPAM.invalid> writes:
> Julien ÉLIE a écrit :
>> No folding is allowed in the Control: header field.
>> The control article you spoke about does not have the syntax of
>> a cancel article ("cancel" + at least a message-ID on a single line)
> Err, you mean that the line is badly splitted ? The line split is valid
> for all headers ?
No, header field continuation is only allowed where FWS or CFWS appears in
the grammar. You cannot use field continuation for the Control header
field. This was an intentional restriction in the new RFC, since a lot of
software does not accept or correctly interpret folding whitespace in the
Control header field.
control = "Control:" SP *WSP control-command *WSP CRLF
control-command = verb *( 1*WSP argument )
verb = token
argument = 1*( %x21-7E )
--
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.
Re: Another cancel message filing problem
Author: Xavier Roche
Date: Mon, 12 Apr 2010 06:47
Date: Mon, 12 Apr 2010 06:47
15 lines
2037 bytes
2037 bytes
Russ Allbery a écrit : > No, header field continuation is only allowed where FWS or CFWS appears in > the grammar. You cannot use field continuation for the Control header > field. Darn, I missed this one, thanks for poiting out. Fortunately, References: and potentially long friends do use CFWS, allowing gentle split of lines. > This was an intentional restriction in the new RFC, since a lot of > software does not accept or correctly interpret folding whitespace in the > Control header field. Yes, this makes sense - I suppose the line split was introduced after the first Usenet spec was released.
Re: Another cancel message filing problem
Author: D. Stussy
Date: Mon, 12 Apr 2010 07:00
Date: Mon, 12 Apr 2010 07:00
18 lines
1948 bytes
1948 bytes
"Viktor Kafke" <v.kafke+usenet@visyn.net> wrote in message news:slrnhs4g03.o34.v.kafke+usenet@gate.v6.kafke.net... > Julien ÉLIE wrote: > > >> Control: cancel > >> <25fcffc8-e8dc-4aea-bb89-38cfdbde7fbf@t23g2000yqt.googlegroups.com> > > > > Do you know the name of the news client that generated that control article? > > I assume he does. Look at the end of D's article: > > >> Article canceled by author using pan 0.133 As a RECIPIENT of the article, I can't confirm that such was true. We really need to ask the cancel message's author.
Re: Another cancel message filing problem
Author: D. Stussy
Date: Mon, 12 Apr 2010 07:02
Date: Mon, 12 Apr 2010 07:02
32 lines
2403 bytes
2403 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:hptege$31v$1@news.trigofacile.com...
> > I've also noticed another cancel message filing problem. This one gets
> > filed into "control", not "control.cancel". I suspect this is because
the
> > Control header is white-space-folded, and thus the header is finding a
> > newline before it finds the second parameter. Maybe it needs to be
> > "unfolded" before it's parsed?
> >
> > Control: cancel
> > <25fcffc8-e8dc-4aea-bb89-38cfdbde7fbf@t23g2000yqt.googlegroups.com>
>
> I thought you would have wanted to reject the article because its
> syntax is not valid :)
> No folding is allowed in the Control: header field.
>
> According to RFC 5536 and 5537:
>
> control = "Control:" SP *WSP control-command *WSP CRLF
> control-command = verb *( 1*WSP argument )
>
> Cancel-command = "cancel" Cancel-arguments
> Cancel-arguments = 1*WSP msg-id
>
> The control article you spoke about does not have the syntax of
> a cancel article ("cancel" + at least a message-ID on a single line)
> so it is filed into "control".
So, why was it accepted at all? If it should have been rejected, it
wasn't.
Re: Another cancel message filing problem
Author: Russ Allbery
Date: Mon, 12 Apr 2010 07:15
Date: Mon, 12 Apr 2010 07:15
22 lines
2258 bytes
2258 bytes
Xavier Roche <xroche@free.fr.NOSPAM.invalid> writes:
> Russ Allbery a écrit :
>> This was an intentional restriction in the new RFC, since a lot of
>> software does not accept or correctly interpret folding whitespace in the
>> Control header field.
> Yes, this makes sense - I suppose the line split was introduced after the
> first Usenet spec was released.
The first Usenet spec was really unclear about some things, such as
whether the RFC 822 behavior of allowing CFWS everywhere should be applied
to the Usenet-only fields, and most software authors just didn't bother
(since implementing CFWS is actually quite annoying). So the de facto
standard ended up being quite different from what one would expect from
the mail world.
--
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.
Re: Another cancel message filing problem
Author: Julien ÉLIE
Date: Mon, 12 Apr 2010 08:06
Date: Mon, 12 Apr 2010 08:06
22 lines
1991 bytes
1991 bytes
Hi Dieter,
> So, why was it accepted at all? If it should have been rejected, it
> wasn't.
Or innd could parse it, allowing FWS (or even CFWS).
In ARTcontrol (innd/art.c):
for (p = &Control[6]; ISWHITE(*p); p++)
continue;
we could use our skip_cfws() or skip_fws() functions instead of that loop.
Would it be wise to do that or should we remain strict about that parsing?
--
Julien ÉLIE
« Après la clairière d'attente, on entre dans la hutte
de consultation. » (Astérix)
Re: Another cancel message filing problem
Author: Julien ÉLIE
Date: Mon, 12 Apr 2010 08:26
Date: Mon, 12 Apr 2010 08:26
16 lines
1801 bytes
1801 bytes
Hi Viktor, > I assume he does. Look at the end of D's article: >>> Article canceled by author using pan 0.133 > > :-) Oh yes :) I was inside headers and did not see the body! -- Julien ÉLIE « Après la clairière d'attente, on entre dans la hutte de consultation. » (Astérix)
Re: Another cancel message filing problem
Author: Julien ÉLIE
Date: Mon, 12 Apr 2010 08:37
Date: Mon, 12 Apr 2010 08:37
27 lines
2550 bytes
2550 bytes
Hi Russ, > No, header field continuation is only allowed where FWS or CFWS appears in > the grammar. You cannot use field continuation for the Control header > field. This was an intentional restriction in the new RFC, since a lot of > software does not accept or correctly interpret folding whitespace in the > Control header field. > > control = "Control:" SP *WSP control-command *WSP CRLF > control-command = verb *( 1*WSP argument ) > verb = token > argument = 1*( %x21-7E ) 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. -- Julien ÉLIE « Après la clairière d'attente, on entre dans la hutte de consultation. » (Astérix)
Re: Another cancel message filing problem
Author: Russ Allbery
Date: Mon, 12 Apr 2010 18:01
Date: Mon, 12 Apr 2010 18:01
23 lines
2130 bytes
2130 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Or innd could parse it, allowing FWS (or even CFWS).
> In ARTcontrol (innd/art.c):
> for (p = &Control[6]; ISWHITE(*p); p++)
> continue;
> we could use our skip_cfws() or skip_fws() functions instead of that loop.
> Would it be wise to do that or should we remain strict about that parsing?
For control messages, I'd be strict and just reject malformatted ones in
innd. It's generally worth being extra-strict with control messages,
since for the most part what you reject that way are forged cancels, alt.*
newgroupers who don't know what they're doing, and similar junk.
--
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.
Re: Another cancel message filing problem
Author: Russ Allbery
Date: Mon, 12 Apr 2010 18:01
Date: Mon, 12 Apr 2010 18:01
33 lines
2584 bytes
2584 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Hi Russ,
>> No, header field continuation is only allowed where FWS or CFWS appears
>> in the grammar. You cannot use field continuation for the Control
>> header field. This was an intentional restriction in the new RFC,
>> since a lot of software does not accept or correctly interpret folding
>> whitespace in the Control header field.
>>
>> control = "Control:" SP *WSP control-command *WSP CRLF
>> control-command = verb *( 1*WSP argument )
>> verb = token
>> argument = 1*( %x21-7E )
> 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).
Huh. Yeah, we should fix that.
> I do not know what other news servers do about that final WSP. I hope
> they understand it well.
Good question. I bet that's the sort of thing no one has thought to
check.
--
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.
Re: Another cancel message filing problem
Author: Julien ÉLIE
Date: Mon, 12 Apr 2010 19:54
Date: Mon, 12 Apr 2010 19:54
21 lines
2359 bytes
2359 bytes
Hi Russ, >> 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). > > Huh. Yeah, we should fix that. What would you want to fix? (erratum RFC 5536? maybe we should ask for Charles' point of view about that?) INN 2.5.2 properly parses the final WSP. -- Julien ÉLIE « -- Il est temps d'aller déguster une bonne cervoise de derrière les fagots ! -- Accompagnées de sangliers dodus rôtis sur ces mêmes fagots, bien sûr ! » (Astérix)
Re: Another cancel message filing problem
Author: Julien ÉLIE
Date: Mon, 12 Apr 2010 19:55
Date: Mon, 12 Apr 2010 19:55
14 lines
2014 bytes
2014 bytes
Hi Russ, > For control messages, I'd be strict and just reject malformatted ones in > innd. It's generally worth being extra-strict with control messages, > since for the most part what you reject that way are forged cancels, alt.* > newgroupers who don't know what they're doing, and similar junk. OK, I will have a look at it. -- Julien ÉLIE « Petite annnonce : Abeille épouserait frelon. Lune de miel assurée. »
Re: Another cancel message filing problem
Author: Russ Allbery
Date: Mon, 12 Apr 2010 21:16
Date: Mon, 12 Apr 2010 21:16
23 lines
2175 bytes
2175 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Hi Russ,
>>> 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).
>> Huh. Yeah, we should fix that.
> What would you want to fix? (erratum RFC 5536? maybe we should ask for
> Charles' point of view about that?)
> INN 2.5.2 properly parses the final WSP.
Oh, sorry, I meant INN and missed that you said it was already fixed.
--
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.
Re: Another cancel message filing problem
Author: Adam H. Kerman
Date: Mon, 12 Apr 2010 23:57
Date: Mon, 12 Apr 2010 23:57
24 lines
2469 bytes
2469 bytes
Julien ALIE <iulius@nom-de-mon-site.com.invalid> wrote: >Hi Russ, >>No, header field continuation is only allowed where FWS or CFWS appears in >>the grammar. You cannot use field continuation for the Control header >>field. This was an intentional restriction in the new RFC, since a lot of >>software does not accept or correctly interpret folding whitespace in the >>Control header field. >> control = "Control:" SP *WSP control-command *WSP CRLF >> control-command = verb *( 1*WSP argument ) >> verb = token >> argument = 1*( %x21-7E ) >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.
Re: Another cancel message filing problem
Author: Russ Allbery
Date: Tue, 13 Apr 2010 00:14
Date: Tue, 13 Apr 2010 00:14
27 lines
2351 bytes
2351 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:
> Julien ALIE <iulius@nom-de-mon-site.com.invalid> wrote:
>> Hi Russ,
>>> control = "Control:" SP *WSP control-command *WSP CRLF
>>> control-command = verb *( 1*WSP argument )
>>> verb = token
>>> argument = 1*( %x21-7E )
>> 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.
--
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.
Re: Another cancel message filing problem
Author: Adam H. Kerman
Date: Tue, 13 Apr 2010 04:09
Date: Tue, 13 Apr 2010 04:09
27 lines
2598 bytes
2598 bytes
Russ Allbery <rra@stanford.edu> wrote: >"Adam H. Kerman" <ahk@chinet.com> writes: >>Julien ALIE <iulius@nom-de-mon-site.com.invalid> wrote: >>>Hi Russ, >>>> control = "Control:" SP *WSP control-command *WSP CRLF >>>> control-command = verb *( 1*WSP argument ) >>>> verb = token >>>> argument = 1*( %x21-7E ) >>>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.
Re: Another cancel message filing problem
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads