From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16253 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.gnus.user Subject: Re: Customizing group buffer - strange "number of total articles" Date: Sun, 21 Apr 2013 15:07:37 +0300 Organization: Oleksandr Gavenko , http://gavenkoa.users.sf.net Message-ID: <87r4i4rss6.fsf@gavenkoa.example.com> References: <87wqs4teca.fsf@krugs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366546067 5362 80.91.229.3 (21 Apr 2013 12:07:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Apr 2013 12:07:47 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Apr 21 14:07:52 2013 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UTt3f-0000ov-Ek for gegu-info-gnus-english@m.gmane.org; Sun, 21 Apr 2013 14:07:51 +0200 Original-Received: from localhost ([::1]:42332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTt3e-0007Wt-Vl for gegu-info-gnus-english@m.gmane.org; Sun, 21 Apr 2013 08:07:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTt3c-0007Wa-DA for info-gnus-english@gnu.org; Sun, 21 Apr 2013 08:07:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTt3b-0000BQ-Fm for info-gnus-english@gnu.org; Sun, 21 Apr 2013 08:07:48 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTt3b-0000BK-8z for info-gnus-english@gnu.org; Sun, 21 Apr 2013 08:07:47 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UTt3Z-0000mP-Lk for info-gnus-english@gnu.org; Sun, 21 Apr 2013 14:07:45 +0200 Original-Received: from 5.248.35.167 ([5.248.35.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Apr 2013 14:07:45 +0200 Original-Received: from gavenkoa by 5.248.35.167 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Apr 2013 14:07:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 5.248.35.167 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:tb0zRm6+RKib9U7rTd+LmJt0Gh8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16253 Archived-At: On 2013-04-15, Rainer M. Krug wrote: > Hi > > I changed my group buffer format and added %t whic, according to the > manual is > > ,---- > | `t' > | Total number of articles. > `---- > > but it gives me very strange numbers, e.g. in the Inbox of my gmail > account (synced via offlineimap) I get nearly 10 times the number of > actual messages. It is an local imap account. I checked the number of > files in the Inbox folder of gmail, and it is also only about 10% of > number shown for %t. > > I also read in the info manual that it is only an estimate and the > liitations for nntp, but my backend is nnimap and I can therefore not > compact. > > So my queestion is: is there a way of getting the number of mails from > the nnimap backend in the group buffer? > (info "(gnus)FAQ 4-12") Question 4.12 ............. The number of total messages in a group which Gnus displays in group buffer is by far to high, especially in mail groups. Is this a bug? Answer ...... No, that's a matter of design of Gnus, fixing this would mean reimplementation of major parts of Gnus' back ends. Gnus thinks "highest-article-number - lowest-article-number = total-number-of-articles". This works OK for Usenet groups, but if you delete and move many messages in mail groups, this fails. To cure the symptom, enter the group via `C-u RET' (this makes Gnus get all messages), then hit `M P b' to mark all messages and then say `B m name.of.group' to move all messages to the group they have been in before, they get new message numbers in this process and the count is right again (until you delete and move your mail to other groups again). -- Best regards!