Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: overriding marks for synchronization
Date: Tue, 10 Aug 2010 22:18:00 -0500	[thread overview]
Message-ID: <87fwylet1z.fsf@lifelogs.com> (raw)
In-Reply-To: <87eie6fzr5.fsf@lifelogs.com>

On Tue, 10 Aug 2010 06:55:42 -0500 Ted Zlatanov <tzz@lifelogs.com> 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




  reply	other threads:[~2010-08-11  3:18 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-10 11:55 Ted Zlatanov
2010-08-11  3:18 ` Ted Zlatanov [this message]
2010-08-11  8:51 ` Steinar Bang
2010-08-11 13:36   ` Ted Zlatanov
2010-08-12 19:56     ` Ted Zlatanov
2010-08-13 12:26       ` Steinar Bang
2010-08-13 12:44         ` Steinar Bang
2010-08-13 12:52         ` Ted Zlatanov
2010-08-13 13:29           ` Ted Zlatanov
2010-08-13 14:12             ` Steinar Bang
2010-08-13 14:29               ` Ted Zlatanov
2010-08-13 18:41                 ` Steinar Bang
2010-08-13 19:39                 ` Steinar Bang
2010-08-13 19:58                   ` Ted Zlatanov
2010-08-14 13:38                     ` Steinar Bang
2010-08-14 14:55                       ` Ted Zlatanov
2010-08-15 11:18                         ` Steinar Bang
2010-08-18 13:44                           ` Ted Zlatanov
2010-08-30 15:59                             ` Steinar Bang
2010-08-30 16:06                               ` Steinar Bang
2010-08-31 18:52                                 ` Ted Zlatanov
2010-08-31 18:50                               ` Ted Zlatanov
2010-08-31 17:27                             ` Steinar Bang
2010-09-02  7:53                               ` Steinar Bang
2010-08-13 18:48           ` Steinar Bang
2010-08-13 19:47             ` Ted Zlatanov
2010-08-15 16:35 ` Didier Verna
2010-08-15 16:39   ` Steinar Bang
2010-08-15 17:20     ` Didier Verna
2010-08-17 18:55       ` Steinar Bang
2010-08-18 13:42         ` Ted Zlatanov
2010-08-22  8:21           ` Steinar Bang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fwylet1z.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).