From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69895 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: overriding marks for synchronization Date: Tue, 10 Aug 2010 22:18:00 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87fwylet1z.fsf@lifelogs.com> References: <87eie6fzr5.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281496774 13985 80.91.229.12 (11 Aug 2010 03:19:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2010 03:19:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18282@lists.math.uh.edu Wed Aug 11 05:19:33 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 1Oj1qm-0001Om-I1 for ding-account@gmane.org; Wed, 11 Aug 2010 05:19:32 +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 1Oj1pe-0004vA-Nn; Tue, 10 Aug 2010 22:18:22 -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 1Oj1pd-0004uv-9r for ding@lists.math.uh.edu; Tue, 10 Aug 2010 22:18:21 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Oj1pS-000172-3u for ding@lists.math.uh.edu; Tue, 10 Aug 2010 22:18:20 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Oj1pQ-0007Wf-00 for ; Wed, 11 Aug 2010 05:18:08 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oj1pQ-00012v-Iz for ding@gnus.org; Wed, 11 Aug 2010 05:18:08 +0200 Original-Received: from c-24-14-16-248.hsd1.il.comcast.net ([24.14.16.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Aug 2010 05:18:08 +0200 Original-Received: from tzz by c-24-14-16-248.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Aug 2010 05:18:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-24-14-16-248.hsd1.il.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:r1TtXXQviAI4apBQ9tL2gnFsUcU= X-Spam-Score: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69895 Archived-At: On Tue, 10 Aug 2010 06:55:42 -0500 Ted Zlatanov wrote: TZ> To override the Gnus marks, is it sufficient to change TZ> gnus-read-init-file and modify the gnus-newsrc-alist? I'm wondering TZ> about the Gnus Agent, for instance. TZ> I'm asking specifically because I want to synchronize marks TZ> automatically across several Gnus installs. This is Gnus-only. My plan TZ> is to provide a few sync backends, including plain files, imap-hash, and TZ> others. It looks like this is the way to override read ranges and marks: (defun gnus-synchronization-do-backends () ;;; example: set marks (gnus-info-set-marks (assoc "groupname here" gnus-newsrc-alist) '((tick 202) (seen (197 . 201)))) ;;; example: set read ranges (gnus-info-set-read (assoc "groupname here" gnus-newsrc-alist) '((1 . 203))) ;;; necessary to sync the gnus-newsrc-hashtb IIUC (gnus-make-hashtable-from-newsrc-alist)) I will add that function on `gnus-read-newsrc-el-hook'. I looked at the gnus-agent but it does so much more with headers and active file and offline caching that synchronizing just the marks would really stretch it. Better to create a new gnus-synchronization.el library IMO. Reiner or anyone else, let me know if you have an opinion. Ted