From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86543 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: wrong unread count after INBOX change Date: Tue, 05 Jan 2016 17:32:40 +0800 Message-ID: <87d1tgxtfr.fsf@ericabrahamsen.net> References: <878u44fkpk.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1451986407 13665 80.91.229.3 (5 Jan 2016 09:33:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 09:33:27 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34770@lists.math.uh.edu Tue Jan 05 10:33:15 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGNzM-0002Vb-3Q for ding-account@gmane.org; Tue, 05 Jan 2016 10:33:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1aGNz6-0000kH-4z; Tue, 05 Jan 2016 03:32:56 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aGNz4-0000ju-Ag for ding@lists.math.uh.edu; Tue, 05 Jan 2016 03:32:54 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aGNz3-0003c1-Ee for ding@lists.math.uh.edu; Tue, 05 Jan 2016 03:32:54 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1aGNz2-00080C-2q for ding@gnus.org; Tue, 05 Jan 2016 10:32:52 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGNz1-0002J5-C1 for ding@gnus.org; Tue, 05 Jan 2016 10:32:51 +0100 Original-Received: from 114.252.241.193 ([114.252.241.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 10:32:51 +0100 Original-Received: from eric by 114.252.241.193 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 10:32:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.252.241.193 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:Q/wS/Qh0pO9Mko+TW/iqraO2rgM= X-Spam-Score: -0.1 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86543 Archived-At: Eric Abrahamsen writes: > Alan Schmitt writes: > >> Hello, >> >> As I modified my dovecot configuration, I had to change where the INBOX >> is stored. It should have been transparent to gnus (I access my mail >> locally through dovecot) but for some reason it confused it and gnus now >> believe I have 3900 unread message in this INBOX, although there is >> none. I tried doing 'g' and 'M-g' on it but it does not change anything. >> If I hit 'ret' I get an error "Can't select group", and if I it 'C-u >> ret' I see the expected 27 read messages. >> >> How can I convince gnus to reset its unread count for this mailbox? > > The sure-fire rip-cord solution for this sort of situation is to edit > the group parameters for that group, completely delete the (active . > XXXX) sexp, finish the edits, then M-g on the group again. > > Works most every time, for me! > > Of course, I can't currently confirm this, because editing a group in > the Group buffer currently gives me: > > gnus-group-edit-group: Symbol’s function definition is void: > gnus-format-message `gnus-format-message' is now a defalias in gnus-util.el: (defalias 'gnus-format-message (if (fboundp 'format-message) 'format-message ;; for Emacs < 25, and XEmacs, don't worry about quote translation. 'format)) But even running (require 'gnus-util) doesn't cause this to be loaded, I have to go and C-x C-e on it. Which I find very weird!