Gnus development mailing list
 help / color / mirror / Atom feed
* Problem entering some IMAP groups
@ 2000-08-30 17:52 Bruce Z. Lysik
  2000-08-30 18:16 ` Simon Josefsson
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Z. Lysik @ 2000-08-30 17:52 UTC (permalink / raw)


Hi folks,

I'm running XEmacs 21.1.10 at work with gnus right out of CVS.

When I try to enter some of my IMAP groups I get an error.  Here's the
result of debug-on-error set to t.  Any help would be appreciated.
Thanks.

Signaling: (end-of-file #<buffer " *nntpd*">)
  read(#<buffer " *nntpd*">)
  nnimap-retrieve-headers-from-file("INBOX.restarts" "pop1")
  nnimap-retrieve-headers((1 2 3) "INBOX.restarts" "pop1" nil)
  gnus-retrieve-headers((1 2 3) "nnimap+pop1:INBOX.restarts" nil)
  gnus-select-newsgroup("nnimap+pop1:INBOX.restarts" nil nil)
  gnus-summary-read-group-1("nnimap+pop1:INBOX.restarts" nil t nil nil
nil)
  gnus-summary-read-group("nnimap+pop1:INBOX.restarts" nil t nil nil
nil nil)
  gnus-group-read-group(nil t)
  gnus-group-select-group(nil)
  gnus-topic-select-group(nil)
  call-interactively(gnus-topic-select-group)
  recursive-edit()
  byte-code("..." [pop-to-buffer debugger-buffer erase-buffer t 50
print-length print-escape-newlines standard-output backtrace
debugger-mode re-search-forward "\n[* ] debug(" 1 debugger-reenable
debugger-args (lambda debug) "Entering:\n" debug backtrace-debug 3
delete-char ?\* 0 exit "Return value: " debugger-value prin1 ?\n ?\
error "Signaling: " "Beginning evaluation of function call form:\n"
nil message "" buffer-read-only inhibit-trace recursive-edit] 3)
  debug(error (end-of-file #<buffer " *nntpd*">))
  read(#<buffer " *nntpd*">)
  nnimap-retrieve-headers-from-file("INBOX.restarts" "pop1")
  nnimap-retrieve-headers((1 2 3) "INBOX.restarts" "pop1" nil)
  gnus-retrieve-headers((1 2 3) "nnimap+pop1:INBOX.restarts" nil)
  gnus-cache-retrieve-headers((1 2 3) "nnimap+pop1:INBOX.restarts"
nil)
  gnus-retrieve-headers((1 2 3) "nnimap+pop1:INBOX.restarts" nil)
  gnus-select-newsgroup("nnimap+pop1:INBOX.restarts" nil nil)
  gnus-summary-read-group-1("nnimap+pop1:INBOX.restarts" nil t nil nil
nil)
  gnus-summary-read-group("nnimap+pop1:INBOX.restarts" nil t nil nil
nil nil)
  gnus-group-read-group(nil t)
  gnus-group-select-group(nil)
  gnus-topic-select-group(nil)
  call-interactively(gnus-topic-select-group)


-- 
Bruce Z. Lysik  <eldrik@logrus.com>   http://www.logrus.com/~eldrik
GCS d++(-) a-- C++ ULS+++$ P+++$ L++ E+ W+++ N++ w--- M-- V PS PE
Y+ PGP+ t+ 5++ X+ R+ tv+ b++ DI+ G e++ h+ r y+ s



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

* Re: Problem entering some IMAP groups
  2000-08-30 17:52 Problem entering some IMAP groups Bruce Z. Lysik
@ 2000-08-30 18:16 ` Simon Josefsson
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Josefsson @ 2000-08-30 18:16 UTC (permalink / raw)
  Cc: ding

eldrik@logrus.com (Bruce Z. Lysik) writes:

> I'm running XEmacs 21.1.10 at work with gnus right out of CVS.
> 
> When I try to enter some of my IMAP groups I get an error.  Here's the
> result of debug-on-error set to t.  Any help would be appreciated.

Does the attached patch work?  Out of curiosity, when you get that
error, could you mail me the content of your " *nntp*" buffer?  I
think your NOV cache might be corrupted.

Index: nnimap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v
retrieving revision 1.30
diff -w -u -u -w -r1.30 nnimap.el
--- nnimap.el	2000/08/21 21:53:27	1.30
+++ nnimap.el	2000/08/30 18:11:43
@@ -458,13 +458,11 @@
       (when (file-exists-p nov)
 	(mm-insert-file-contents nov)
 	(set-buffer-modified-p nil)
-	(let ((min (progn (goto-char (point-min))
-			  (when (not (eobp))
-			    (read (current-buffer)))))
-	      (max (progn (goto-char (point-max))
+	(let ((min (ignore-errors (goto-char (point-min))
+				  (read (current-buffer))))
+	      (max (ignore-errors (goto-char (point-max))
 			  (forward-line -1)
-			  (when (not (bobp))
-			    (read (current-buffer))))))
+				  (read (current-buffer)))))
 	  (if (and (numberp min) (numberp max))
 	      (cons min max)
 	    ;; junk, remove it, it's saved later




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

end of thread, other threads:[~2000-08-30 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-30 17:52 Problem entering some IMAP groups Bruce Z. Lysik
2000-08-30 18:16 ` Simon Josefsson

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