From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72772 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: Re: 'g' transfers a lot of data Date: Fri, 08 Oct 2010 11:31:18 +0200 Message-ID: <87d3rl115l.fsf@keller.adm.naquadah.org> References: <87vd5glbad.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1286530362 17192 80.91.229.12 (8 Oct 2010 09:32:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Oct 2010 09:32:42 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21144@lists.math.uh.edu Fri Oct 08 11:32:41 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 1P49Jb-0006Hv-8h for ding-account@gmane.org; Fri, 08 Oct 2010 11:32:35 +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 1P49J9-0003kS-9b; Fri, 08 Oct 2010 04:32:07 -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 1P49J6-0003k8-7h for ding@lists.math.uh.edu; Fri, 08 Oct 2010 04:32:04 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P49J4-0007n8-LQ for ding@lists.math.uh.edu; Fri, 08 Oct 2010 04:32:03 -0500 Original-Received: from prometheus.naquadah.org ([212.85.154.174] helo=mx1.naquadah.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P49J3-0002Lr-00 for ; Fri, 08 Oct 2010 11:32:01 +0200 Original-Received: by mx1.naquadah.org (Postfix, from userid 8) id 1E6055C111; Fri, 8 Oct 2010 11:31:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on prometheus.naquadah.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Original-Received: from keller.adm.naquadah.org (unknown [IPv6:2a01:e35:2e39:e900:222:faff:fe9d:ce44]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 8F30E5C0F4 for ; Fri, 8 Oct 2010 11:31:19 +0200 (CEST) Original-Received: from jd by keller.adm.naquadah.org with local (Exim 4.72) (envelope-from ) id 1P49IN-0005Q7-1Y for ding@gnus.org; Fri, 08 Oct 2010 11:31:19 +0200 Mail-Followup-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 07 Oct 2010 21:41:16 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72772 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Oct 07 2010, Lars Magne Ingebrigtsen wrote: >> Maybe 100 is not enough actually? >> How others MUA plays with that? > > The only way to get the flags data (without QRESYNC) is to say "UID > FETCH FLAGS 1:*". If you have 200K messages in that group, it'll take a > while. > > When all IMAP servers get QRESYNC support this will be a moot issue, but > at present you have to trade off accuracy for speed in this area. I > think other MUAs do opportunistic FLAGS sync in the background. I took a look a mutt, and from what I understand it does 2 things: =2D to know if there's new mail, it uses the STATUS command. . STATUS INBOX (UIDNEXT UIDVALIDITY UNSEEN RECENT MESSAGES) * STATUS "INBOX" (MESSAGES 11790 RECENT 0 UIDNEXT 26293 UIDVALIDITY 12470= 83159 UNSEEN 1) That seems enough to use for 'g'. =2D Store the UIDVALIDITY value permanently for each mailbox, and whenever it changes refetch all information for all mails in that mailbox. That sounds safer than the current behaviour, and probably not complicated to implement. WDYT Lars? :) =2D-=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkyu5OYACgkQpGK1HsL+5c0fFQCeJ2HJy4LVedKzPc0kQdY5Z+iO mjkAoK2KbVaK+fSM09HznZ43WLPWmtBB =5vLz -----END PGP SIGNATURE----- --=-=-=--