From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83502 Path: news.gmane.org!not-for-mail From: keramida@ceid.upatras.gr (Giorgos Keramidas) Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Emacs trunk and Gnus master are fully sync'd now Date: Mon, 08 Jul 2013 15:16:20 +0200 Message-ID: <67um8ry59hnqe3.fsf@saturn.laptop> References: <67um8rzju4ykdj.fsf@saturn.laptop> <87a9lz1zpj.fsf@building.gnus.org> <87ppuv4rs1.fsf@randomsample.de> <67um8robae33lb.fsf@saturn.laptop> <877gh24094.fsf@randomsample.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373289410 6225 80.91.229.3 (8 Jul 2013 13:16:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jul 2013 13:16:50 +0000 (UTC) Cc: Katsumi Yamaoka , ding@gnus.org, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 08 15:16:50 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UwBJB-0004ez-Pu for ged-emacs-devel@m.gmane.org; Mon, 08 Jul 2013 15:16:50 +0200 Original-Received: from localhost ([::1]:52887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwBJA-0007NE-Vx for ged-emacs-devel@m.gmane.org; Mon, 08 Jul 2013 09:16:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwBJ6-0007Mn-Mv for emacs-devel@gnu.org; Mon, 08 Jul 2013 09:16:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwBJ3-0007oZ-Nz for emacs-devel@gnu.org; Mon, 08 Jul 2013 09:16:44 -0400 Original-Received: from tux-cave.hellug.gr ([195.134.99.74]:47236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwBJ3-0007oH-9t for emacs-devel@gnu.org; Mon, 08 Jul 2013 09:16:41 -0400 X-Hellug-MailScanner-From: gkeramidas@gmail.com X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.9, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: r68DGQkR024315 Original-Received: from giorgos.local (217-162-217-29.dynamic.hispeed.ch [217.162.217.29]) (authenticated bits=0) by tux-cave.hellug.gr (8.14.4/8.14.4/Debian-4) with ESMTP id r68DGQkR024315 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 8 Jul 2013 16:16:33 +0300 Original-Received: by giorgos.local (Postfix, from userid 1800799460) id 33C526C3B3E; Mon, 8 Jul 2013 15:16:20 +0200 (CEST) In-Reply-To: <877gh24094.fsf@randomsample.de> (David Engster's message of "Sun, 07 Jul 2013 21:51:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 195.134.99.74 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161727 gmane.emacs.gnus.general:83502 Archived-At: On Sun, 07 Jul 2013 21:51:19 +0200, David Engster wrote: > Giorgos Keramidas writes: >> On Sat, 06 Jul 2013 17:44:30 +0200, David Engster wrote: >>> AFAICS in `nnimap-retrieve-group-data-early', the resync should only >>> happen when there's either no 'active', 'unexist', or >>> 'uidvalidity'. Perhaps the first step should be to install some verbose >>> messaging which says which of those triggers the resync. >> >> I can try that. Thanks for the pointer. > > You can apply the attached patch against current Emacs trunk to see in > the *Messages* buffer why a group is triggered for resync. Thanks for this patch: > === modified file 'lisp/gnus/nnimap.el' > --- lisp/gnus/nnimap.el 2013-07-02 10:38:58 +0000 > +++ lisp/gnus/nnimap.el 2013-07-07 19:48:50 +0000 > @@ -1326,6 +1326,12 @@ > (if (and active uidvalidity unexist) > ;; Fetch the last 100 flags. > (setq start (max 1 (- (cdr active) 100))) > + (message > + (concat "Initial sync: Group " group > + ". Reason: " > + (when (not active) "active ") > + (when (not uidvalidity) "uidvalidity ") > + (when (not unexist) "unexist "))) > (incf (nnimap-initial-resync nnimap-object)) > (setq start 1)) > (push (list (nnimap-send-command "%s %S" command The messages logged point to 'unexist' for all the groups: Reading /Users/gkeramidas/.newsrc.eld... Opening nnfolder server on archive...done No new newsgroups Checking new news... Initial sync: Group trips-2013-08-greece. Reason: unexist Initial sync: Group mercurial-main. Reason: unexist Initial sync: Group linkedin. Reason: unexist Initial sync: Group tex-context. Reason: unexist Initial sync: Group wikipedia. Reason: unexist Initial sync: Group unix-admin-gr. Reason: unexist Initial sync: Group twitter. Reason: unexist Initial sync: Group trips-2011-09-zurich-ntinos-aggeliki. Reason: unexist Initial sync: Group trips-2010-10-zurich-relocation. Reason: unexist Initial sync: Group transifex-devel. Reason: unexist Initial sync: Group spotify. Reason: unexist Initial sync: Group serverhive. Reason: unexist Initial sync: Group plug. Reason: unexist Initial sync: Group mobility. Reason: unexist Initial sync: Group migrate2linux. Reason: unexist Initial sync: Group microsoft. Reason: unexist Initial sync: Group mercurial-devel. Reason: unexist Initial sync: Group mercurial-bug. Reason: unexist Initial sync: Group lgu. Reason: unexist Initial sync: Group interview. Reason: unexist Initial sync: Group intelen. Reason: unexist Initial sync: Group ikea. Reason: unexist Initial sync: Group homegate. Reason: unexist Initial sync: Group google-plus. Reason: unexist Initial sync: Group freebsd-www. Reason: unexist Initial sync: Group freebsd-threads. Reason: unexist Initial sync: Group freebsd-security. Reason: unexist Initial sync: Group freebsd-questions. Reason: unexist Initial sync: Group freebsd-newbies. Reason: unexist Initial sync: Group freebsd-net. Reason: unexist Initial sync: Group freebsd-fs. Reason: unexist Initial sync: Group freebsd-doc-el. Reason: unexist Initial sync: Group freebsd-bugs. Reason: unexist Initial sync: Group freebsd-announce-moderators. Reason: unexist Initial sync: Group freebsd-advocacy. Reason: unexist Initial sync: Group fitocracy. Reason: unexist Initial sync: Group esr-uvc-review. Reason: unexist Initial sync: Group emacs-devel. Reason: unexist Initial sync: Group discus. Reason: unexist Initial sync: Group dentist. Reason: unexist Initial sync: Group cyanogen. Reason: unexist Initial sync: Group bsd-gr. Reason: unexist Initial sync: Group bitbucket-issues. Reason: unexist Initial sync: Group bitbucket. Reason: unexist Initial sync: Group atf-devel. Reason: unexist Initial sync: Group atf. Reason: unexist [...] Does `unexist' mean that the group does not exist locally? I see a few lines above that we check (and active uidvalidity unexist) but if 'unexist' means that the groups does not exist in `.newsrc.eld', then we are not reading the .newsrc.eld contents correctly.