From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67285 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus and imap Date: Sun, 24 Aug 2008 21:29:30 +0200 Message-ID: <87y72mus85.fsf@marauder.physik.uni-ulm.de> References: <877iabwtjx.fsf@randomsample.de> <87abf51c4m.fsf@marauder.physik.uni-ulm.de> <874p5dm35l.fsf@randomsample.de> <87iqttq7ja.fsf@randomsample.de> <87d4k0t7ga.fsf@randomsample.de> <87myj3wzp7.fsf@randomsample.de> <878wumqo7z.fsf@randomsample.de> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219606281 5078 80.91.229.12 (24 Aug 2008 19:31:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Aug 2008 19:31:21 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15736@lists.math.uh.edu Sun Aug 24 21:32:14 2008 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.50) id 1KXLJt-00044P-2U for ding-account@gmane.org; Sun, 24 Aug 2008 21:32:13 +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 1KXLI4-00052o-Lf; Sun, 24 Aug 2008 14:30:20 -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 1KXLI3-00052Z-0P for ding@lists.math.uh.edu; Sun, 24 Aug 2008 14:30:19 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KXLHy-0006Ox-1E for ding@lists.math.uh.edu; Sun, 24 Aug 2008 14:30:18 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KXLHz-0000w9-00 for ; Sun, 24 Aug 2008 21:30:15 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m7OJUBaZ001312 for ; Sun, 24 Aug 2008 21:30:12 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id A83581C73D for ; Sun, 24 Aug 2008 21:30:11 +0200 (CEST) X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od (David Engster's message of "Sun, 24 Aug 2008 20:09:36 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-SIHOPE-DCC-3-Metrics: poseidon 1085; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new X-Spam-Score: 0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67285 Archived-At: On Sun, Aug 24 2008, David Engster wrote: > Vitaly Mayatskikh writes: >> Yes, but we still have to fix all this convoluted code (for >> gnus-unread-info or whatever). Unread articles calculations (count of >> articles, list of articles) are totally wrong for the case of IMAP. > > I wonder why it's that bad with the Zimbra imapd. Doesn't it produce > contiguous UIDs? I mean, I also get wrong article numbers with dovecot, > but only in cases when I delete or move articles, but these are not > "totally" wrong. As the documentation says, the number is an estimate, > after all. In my nnimap usage, I don't see wrong article counts. There's also code introduced in Oort that's supposed to give correct unread counts: ,----[ (info "(gnus)Oort Gnus") ] | * Unread count correct in nnimap groups. | | The estimated number of unread articles in the group buffer | should now be correct for nnimap groups. This is achieved | by calling `nnimap-fixup-unread-after-getting-new-news' from | the `gnus-setup-news-hook' (called on startup) and | `gnus-after-getting-new-news-hook'. (called after getting | new mail). If you have modified those variables from the | default, you may want to add | `nnimap-fixup-unread-after-getting-new-news' again. If you | were happy with the estimate and want to save some (minimal) | time when getting new mail, remove the function. `---- BTW, the functions is `gnus-fixup-nnimap-unread-after-getting-new-news' not `nnimap-fixup-unread-after-getting-new-news': ,----[ ChangeLog.2 ] | 2002-09-27 Simon Josefsson | | * gnus-start.el (gnus-fixup-nnimap-unread-after-getting-new-news): New. | (gnus-setup-news-hook): Use it. | (gnus-after-getting-new-news-hook): Ditto. | | * nnimap.el (nnimap-fixup-unread-after-getting-new-news): Remove. `---- > BTW, there was also a patch for this, though for nnml, but it was not > integrated into Gnus: > > http://thread.gmane.org/gmane.emacs.gnus.general/56714 We have papers on file for David Hanak. So if his code is useful, we could use it. > The comments on this are interesting, especially the ones from Kevin > Greiner, which led me to the above request-group-articles function. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/