From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74376 Path: news.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: updating backend marks immediately Date: Thu, 25 Nov 2010 10:28:30 -0500 Message-ID: <87tyj5h17l.fsf@uwo.ca> References: <87pquku8wi.fsf@uwo.ca> <87wromp358.fsf@lifelogs.com> <874obq2d61.fsf@uwo.ca> <874obppbct.fsf@lifelogs.com> <87lj4yksha.fsf@uwo.ca> <87aalbh91g.fsf@uwo.ca> <87eiaegmho.fsf@uwo.ca> <87fwuq4d15.fsf@uwo.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290698966 7614 80.91.229.12 (25 Nov 2010 15:29:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Nov 2010 15:29:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22741@lists.math.uh.edu Thu Nov 25 16:29:22 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 1PLdlB-0000m6-LP for ding-account@gmane.org; Thu, 25 Nov 2010 16:29:21 +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 1PLdki-0000is-1S; Thu, 25 Nov 2010 09:28:52 -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 1PLdkf-0000ic-5n for ding@lists.math.uh.edu; Thu, 25 Nov 2010 09:28:49 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PLdka-0005FU-Cn for ding@lists.math.uh.edu; Thu, 25 Nov 2010 09:28:48 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PLdkZ-0000uf-00 for ; Thu, 25 Nov 2010 16:28:43 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PLdkZ-0000Pw-Ad for ding@gnus.org; Thu, 25 Nov 2010 16:28:43 +0100 Original-Received: from bas3-london14-1096780631.dsl.bell.ca ([65.95.139.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Nov 2010 16:28:43 +0100 Original-Received: from jdc by bas3-london14-1096780631.dsl.bell.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Nov 2010 16:28:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: bas3-london14-1096780631.dsl.bell.ca User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:qWw8oOS050ny1prGsY0nXxbcPa8= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74376 Archived-At: Lars Magne Ingebrigtsen writes: > Lars Magne Ingebrigtsen writes: > >> Yeah, I'm attempting to do that now, but it isn't totally trivial. >> There's apparently no single function to just sync all the (current) >> flags from a single article to the backend? So I think I'll have to >> write that first. > > Done. It was kinda trivial, really. So it now ensures that all marks > are set before issuing the COPY command. Thanks! It looks like an extra STORE command is being done, though. Below is an example where I didn't change the marks on an article before moving it (from "test" to the same group), and yet the first line shows a bunch of flags being removed. And I don't know why \Seen would be removed, since the article was marked as read. Then in command 308, the \Seen flag is restored, which seems inefficient. And are commands 309 and 310 needed? Dan 10:14:38 302 UID STORE 10719 -FLAGS.SILENT (\Seen \Flagged \Answered gnus-expire gnus-dormant gnus-save gnus-download gnus-forward) 10:14:38 303 UID FETCH 10719 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref X-Spam-Status To Cc Keywords Newsgroups Subject)]) 10:14:38 304 UID COPY 10719 "test" 10:14:38 305 UID STORE 10719 +FLAGS.SILENT (\Deleted) 10:14:38 306 UID EXPUNGE 10719 10:14:38 307 UID SEARCH HEADER Message-Id "<2A24BF61-650C-468E-B14C-D9351659FACD@birs.ca>" 10:14:38 308 UID STORE 10728 +FLAGS.SILENT (\Seen) 10:14:38 309 SELECT "test" 10:14:38 310 UID FETCH 1:* FLAGS