Gnus development mailing list
 help / color / mirror / Atom feed
* news server responses with no msg?
@ 2001-05-11 19:04 Kai Großjohann
  2001-05-11 20:35 ` Simon Josefsson
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2001-05-11 19:04 UTC (permalink / raw)


Suppose Gnus issues a `LIST ACTIVE' command, and the server responds
with `215 foo' -- then everything should be fine.  But what if the
server responds with `215' (the space and the message are missing)?
What would happen in this case?  Does anybody know?

IMVHO, Gnus should accept this response, too.  Even if it might
violate the RFC, which possibly (I haven't looked) requires a space
and a message to follow the status code.

kai
-- 
The passive voice should never be used.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: news server responses with no msg?
  2001-05-11 19:04 news server responses with no msg? Kai Großjohann
@ 2001-05-11 20:35 ` Simon Josefsson
  2001-05-11 22:54   ` Kai Großjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Josefsson @ 2001-05-11 20:35 UTC (permalink / raw)
  Cc: ding

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> Suppose Gnus issues a `LIST ACTIVE' command, and the server responds
> with `215 foo' -- then everything should be fine.  But what if the
> server responds with `215' (the space and the message are missing)?
> What would happen in this case?  Does anybody know?

It would try to treat it as a newsgroup.  I'll commit the following
soonish unless someone objects.  (And yes, it is g-i-newsgroups which
is, somewhat non-inuitively, used to remove the NNTP responses.)

2001-05-11  Simon Josefsson  <simon@josefsson.org>

	* gnus-start.el (gnus-ignored-newsgroups): Also ignore NNTP type
	status lines without any text ("^215$").

--- gnus-start.el.~6.19.~	Sun May  6 02:15:16 2001
+++ gnus-start.el	Fri May 11 22:30:02 2001
@@ -229,7 +229,7 @@
 (defcustom gnus-ignored-newsgroups
   (mapconcat 'identity
 	     '("^to\\."			; not "real" groups
-	       "^[0-9. \t]+ "		; all digits in name
+	       "^[0-9. \t]+\\( \\|$\\)"	; all digits in name
 	       "^[\"][]\"[#'()]"	; bogus characters
 	       )
 	     "\\|")



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: news server responses with no msg?
  2001-05-11 20:35 ` Simon Josefsson
@ 2001-05-11 22:54   ` Kai Großjohann
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Großjohann @ 2001-05-11 22:54 UTC (permalink / raw)


Very nice.  I think that would solve a problem that someone in
de.comp.editors or de.comp.gnu had.  Thanks!
kai
-- 
The passive voice should never be used.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-05-11 22:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-11 19:04 news server responses with no msg? Kai Großjohann
2001-05-11 20:35 ` Simon Josefsson
2001-05-11 22:54   ` Kai Großjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).