From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65611 Path: news.gmane.org!not-for-mail From: Elias Oltmanns Newsgroups: gmane.emacs.gnus.general Subject: Re: [patch] gnus-agent doesn't always synchronise flags if asked to Date: Fri, 09 Nov 2007 14:33:58 +0100 Message-ID: <87mytnlf09.fsf@denkblock.local> References: <874pi51a2o.fsf@denkblock.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194615299 19699 80.91.229.12 (9 Nov 2007 13:34:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2007 13:34:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14108@lists.math.uh.edu Fri Nov 09 14:34:54 2007 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 1IqU0S-0004f2-Nf for ding-account@gmane.org; Fri, 09 Nov 2007 14:34:45 +0100 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 1IqU08-0000ib-IA; Fri, 09 Nov 2007 07:34:24 -0600 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 1IqU07-0000iH-95 for ding@lists.math.uh.edu; Fri, 09 Nov 2007 07:34:23 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IqU01-0004DM-E4 for ding@lists.math.uh.edu; Fri, 09 Nov 2007 07:34:23 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IqTzw-0000rD-00 for ; Fri, 09 Nov 2007 14:34:12 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IqTzs-0004Iy-Q7 for ding@gnus.org; Fri, 09 Nov 2007 13:34:08 +0000 Original-Received: from pd9e84693.dip.t-dialin.net ([217.232.70.147]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Nov 2007 13:34:08 +0000 Original-Received: from eo by pd9e84693.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Nov 2007 13:34:08 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd9e84693.dip.t-dialin.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Cancel-Lock: sha1:Sy3EvJUK5rlmcC5pux4C8298RG0= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65611 Archived-At: Elias Oltmanns wrote: > Hi all, > > when gnus is switched into plugged mode and any of the agentised servers > is offline at the time, the user is asked whether to switch that server > into online mode. However, neither then, nor when gnus actually opens a > connection to that server (for instance after pressing g in the group > buffer) flags are synchronised even though gnus-agent-synchronize-flags > is set to t or 'ask. > > I suggest to call gnus-agent-possibly-synchronize-flags from > gnus-open-server. Please find the patch below. The ChangeLog entry would be: * gnus-agent.el (gnus-agent-toggle-plugged): Don't call gnus-agent-'possibly-synchronize-flags as this should be called when the server is actually being opened. Also, move check for the flags file of an agentized server from g-a-p-synchronize-flags to g-a-p-synchronize-flags-server. * gnus-int.el (gnus-open-server): Add a call to gnus-agent-possibly-synchronize-flags-server after a connection has been established successfully. Regards, Elias