From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72415 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap issues: split error and initially missing unread articles Date: Fri, 01 Oct 2010 12:19:21 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87iq1lj0fa.fsf@lifelogs.com> References: <87fwww1bht.fsf@lifelogs.com> <871v8cxud8.fsf@jumptrading.com> <87ocbgwc8u.fsf@lifelogs.com> <87iq1n8dtk.fsf@lifelogs.com> <87wrq2zrd0.fsf_-_@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285953596 6074 80.91.229.12 (1 Oct 2010 17:19:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 17:19:56 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20787@lists.math.uh.edu Fri Oct 01 19:19:52 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P1jGx-0008KO-RW for ding-account@gmane.org; Fri, 01 Oct 2010 19:19:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P1jGq-0006Bl-13; Fri, 01 Oct 2010 12:19:44 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P1jGo-0006BW-Ls for ding@lists.math.uh.edu; Fri, 01 Oct 2010 12:19:42 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P1jGj-0000TT-Q8 for ding@lists.math.uh.edu; Fri, 01 Oct 2010 12:19:42 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P1jGj-0005yk-00 for ; Fri, 01 Oct 2010 19:19:37 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P1jGd-0008DP-JY for ding@gnus.org; Fri, 01 Oct 2010 19:19:31 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 19:19:31 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Oct 2010 19:19:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:6gCLzbomyTABZMzCvt52d5FzqKc= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72415 Archived-At: On Fri, 01 Oct 2010 18:52:34 +0200 Lars Magne Ingebrigtsen wrote: LMI> Ted Zlatanov writes: >> - mark a bunch of foreign nnimap groups (10 or more) and `M-g' or `g' to scan all LMI> I'm not quite sure why this happens, but it's easy enough to check for LMI> UIDNEXT before using it. Since it happens in one of your INBOX groups, LMI> I'm guessing it may have something to do with totally empty groups on LMI> Courier... LMI> Pushed now. It's still not fixed, but that hint helped. I have a group now which can reliable produce the error, and it seems to happen because it's empty: Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) nnimap-request-group("INBOX.eterm" "lifelogs.com" t nil) gnus-request-group("nnimap+lifelogs.com:INBOX.eterm" t) gnus-select-newsgroup("nnimap+lifelogs.com:INBOX.eterm" nil nil) gnus-summary-read-group-1("nnimap+lifelogs.com:INBOX.eterm" nil t nil nil nil) gnus-summary-read-group("nnimap+lifelogs.com:INBOX.eterm" 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 nil nil) This patch fixes it: diff --git a/lisp/nnimap.el b/lisp/nnimap.el index ff1d2b8..8e37e4b 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -623,10 +623,11 @@ textual parts.") (nnimap-update-infos marks (list info))) (goto-char (point-max)) (let ((uidnext (nth 5 (car marks)))) - (setq high (if uidnext - (1- uidnext) - (nth 3 (car marks))) - low (or (nth 4 (car marks)) uidnext))))) + (setq high (or (if uidnext + (1- uidnext) + (nth 3 (car marks))) + 0) + low (or (nth 4 (car marks)) uidnext 0))))) (erase-buffer) (insert (format but then the empty group shows one unread article, so I'm sure you can figure out a better way :) >> I also sometimes see IMAP groups with few unread articles (just the >> recent ones since the nnimap switch). `M-g' inside the group brings >> back everything. I don't know what triggers that but I think at least >> one other person has reported it. This is on Courier IMAP. I won't >> start a new thread since below you can see all my marks :) LMI> So there are too few unread articles in the group? Does `M-g' on the LMI> group in the group buffer fix it? Yes, always. Also all my foreign IMAP groups (I don't have native ones) are showing 0/0 counts when I start up, until I do `M-g' on them. Ted