Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* gnus v5.10.2 errors out on newsgroups with quotes (") in them
@ 2003-05-30  3:10 wayne
  2003-06-05  0:16 ` Jesper Harder
  0 siblings, 1 reply; 2+ messages in thread
From: wayne @ 2003-05-30  3:10 UTC (permalink / raw)



After many years of using gnus as just a mail reader, I've recently
started to use the news reader functions again.

One thing I just discovered is that gnus v5.10.2 barfs when it
encounters a newsgroup with a quote (") mark in it.  Now, back when I
used to be a news admin and read news, such charcters weren't allowed
in newsgroup names.  I don't know if this has changed or not.

Anyway, the news server that I use, corp.newsfeeds.com, has several
newsgroups in its active file with quote marks, such as:
alt.i.love.ab"ie.cummings

If I do a "B<cr>nntp<cr>corp.newsfeeds.com" command, it will try and
read and parse the active file.  When it encounters a news group with
a quote, it gets confused and errors out in
gnus-browse-foreign-server.

I can "fix" this problem by deleting groups with quotes in them via the
gnus-ignored-newsgroups variable.

The following is the traceback that I get:

Signaling: (wrong-type-argument number-char-or-marker-p ie\.cummings)
  1+(ie\.cummings)
  (- (1+ (cddr group)) (cadr group))
  (max 0 (- (1+ ...) (cadr group)))
  (format "%c%7d: %s\n" (let (...) (cond ... ... ... ...)) (max 0 (- ... ...)) (mm-decode-coding-string name (inline ...)))
  (insert (format "%c%7d: %s\n" (let ... ...) (max 0 ...) (mm-decode-coding-string name ...)))
  (prog1 (1+ (point)) (insert (format "%c%7d: %s\n" ... ... ...)))
  (gnus-add-text-properties (point) (prog1 (1+ ...) (insert ...)) (list (quote gnus-group) name))
  (while (setq group (pop groups)) (gnus-add-text-properties (point) (prog1 ... ...) (list ... name)))
  (let ((buffer-read-only nil) name (prefix ...)) (while (setq group ...) (gnus-add-text-properties ... ... ...)))
  (if gnus-server-browse-in-group-buffer (let* (... ...) (gnus-configure-windows ...) (funcall gnus-group-prepare-function gnus-level-killed ... 1 ...)) (gnus-get-buffer-create gnus-browse-buffer) (when gnus-carpal (gnus-carpal-setup-buffer ...)) (gnus-configure-windows (quote browse)) (buffer-disable-undo) (let (...) (erase-buffer)) (gnus-browse-mode) (setq mode-line-buffer-identification (list ...)) (let (... name ...) (while ... ...)) (switch-to-buffer (current-buffer)))
  (cond ((not ...) (gnus-message 1 "Unable to contact server %s: %s" ... ...) nil) ((not ...) (gnus-message 1 "Couldn't request list: %s" ...) nil) (t (save-excursion ... ...) (setq groups ...) (if gnus-server-browse-in-group-buffer ... ... ... ... ... ... ... ... ... ...) (goto-char ...) (gnus-group-position-point) (gnus-message 5 "Connecting to %s...done" ...) t))
  (let* ((method gnus-browse-current-method) (orig-select-method gnus-select-method) (gnus-select-method method) groups group) (gnus-message 5 "Connecting to %s..." (nth 1 method)) (cond (... ... nil) (... ... nil) (t ... ... ... ... ... ... t)))
  gnus-browse-foreign-server((nntp "news.inetnebr.com"))
  (lambda (method) "Browse a foreign news server.\nIf called interactively, this function will ask for a select method\n (nntp, nnspool, etc.) and a server address (eg. nntp.some.where).\nIf not, METHOD should be a list where the first element is the method\nand the second element is the address." (interactive (list ...)) (gnus-browse-foreign-server method))((nntp "news.inetnebr.com"))
  call-interactively(gnus-group-browse-foreign-server)


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


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

* Re: gnus v5.10.2 errors out on newsgroups with quotes (") in them
  2003-05-30  3:10 gnus v5.10.2 errors out on newsgroups with quotes (") in them wayne
@ 2003-06-05  0:16 ` Jesper Harder
  0 siblings, 0 replies; 2+ messages in thread
From: Jesper Harder @ 2003-06-05  0:16 UTC (permalink / raw)


wayne <wayne@midwestcs.com> writes:

> One thing I just discovered is that gnus v5.10.2 barfs when it
> encounters a newsgroup with a quote (") mark in it.  Now, back when I
> used to be a news admin and read news, such charcters weren't allowed
> in newsgroup names.  I don't know if this has changed or not.

Nope, they aren't allowed.

> Anyway, the news server that I use, corp.newsfeeds.com,

Sigh, newsfeeds.com is one of those places that boast about
"uncensored" newsfeeds -- nevermind that their active file is full of
garbage and invalid group names.

> has several newsgroups in its active file with quote marks, such as:
> alt.i.love.ab"ie.cummings

When you get the backtrace could you switch to the " *nntpd*" buffer
(note the leading space) and copy a couple of lines from the active
file around the offending group.


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

end of thread, other threads:[~2003-06-05  0:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-30  3:10 gnus v5.10.2 errors out on newsgroups with quotes (") in them wayne
2003-06-05  0:16 ` Jesper Harder

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).