From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58239 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap problem solved by removing .agentview and .overview Date: Thu, 12 Aug 2004 18:48:35 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <871xidtl04.fsf@mail.contactor.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092329411 12494 80.91.224.253 (12 Aug 2004 16:50:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Aug 2004 16:50:11 +0000 (UTC) Original-X-From: ding-owner+M6780@lists.math.uh.edu Thu Aug 12 18:49:57 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BvIm5-0001GK-00 for ; Thu, 12 Aug 2004 18:49:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BvIl7-0005cD-00; Thu, 12 Aug 2004 11:48:57 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BvIl0-0005c7-00 for ding@lists.math.uh.edu; Thu, 12 Aug 2004 11:48:50 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BvIkx-0003CM-Lk for ding@lists.math.uh.edu; Thu, 12 Aug 2004 11:48:47 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 6EA9C3A0224 for ; Thu, 12 Aug 2004 11:48:45 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BvIku-0000m5-00 for ; Thu, 12 Aug 2004 18:48:44 +0200 Original-Received: from c494102a.s-bi.bostream.se ([217.215.27.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Aug 2004 18:48:44 +0200 Original-Received: from jas by c494102a.s-bi.bostream.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Aug 2004 18:48:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 63 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c494102a.s-bi.bostream.se User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:lQfz88wRtR9JO118IQBcCSDjA4U= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58239 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58239 "Steven E. Harris" writes: >> Is there a simple recipe for reproducing this? > > Here's my workflow: > > o At work, start Gnus in plugged mode. Read e-mail all day. > > o At the end of the day, by way of an rsync-dependent script, send all > my changed score files, ~/.newsrc, and ~/.newsrc.eld files to my > ISP's disk. > Note that I don't sync the agent directories. My understanding is > that those are for local cache management. As I want to have a > different cache at home, I leave it to Gnus to figure out the > appropriate caching operations. I'm not completely sure, but there might be a problem with your workflow. The .newsrc.eld contain active info, and the agent may be using the active info to decide which headers to download. So what is happening is pretty much this: 1. (work machine) active range in .newsrc is 1-4711, which match agent overview's. 2. (home machine) active range in .newsrc is 1-4711 (by way of rsync), which might not match agent overview's, because they were created when the active range was 1-4000 (yesterday). 3. (home machine) as you read new e-mail, the active range increase to 1-5711, and the agent overview include 4711-5711 data. 4. (work machine) active range in .newsrc is 1-5711 (by way of rsync) but agent overview only has 1-4711. the agent trusts 1-5711 and assumes 4711-5711 doesn't exist, and doesn't try to download them again. In other words, you need to sync .overview too. You may need to sync .agentview as well, but then again you might need to _not_ sync .agentview. In the worst case, there is some information in .agentview that need to be rsync'ed and some information that need to not be rsync'ed. If so, we should probably try to separate the data that is local state, i.e. cache directory, from the .newsrc state data. If someone recalls exactly how the data in .agentview is used by the agent, that would answer whether you need to sync it or not. I don't recall. Perhaps you need to take a step back to solve this: Exactly why are you syncing .newsrc* at all? Messages flags are supposed to be synchronized via the IMAP server, so there's no need to synchronize the files for them. Most other data that is stored in .newsrc.eld can be stored in .emacs or .gnus. The only major thing, that I recall, is that Topics structures can't be defined except by via .newsrc.eld. Getting rid of .newsrc.eld would be nice. Move all setup related things to .gnus, and all state data into ~/News or wherever they belong.