Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: Move messages while offline using registry?
Date: Fri, 07 Feb 2003 17:54:12 -0500	[thread overview]
Message-ID: <m33cmz7ld7.fsf@heechee.beld.net> (raw)
In-Reply-To: <844r7fzro3.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@uni-duisburg.de's message of "Fri, 07 Feb 2003 22:50:36 +0100")

On Fri, 07 Feb 2003, kai.grossjohann@uni-duisburg.de wrote:
> Now that the registry is there, it could be used to implement moving
> messages while offline.  

As of today, I think it's ready.  More or less.

> First of all, you'd need a place to stash the to-be-moved messages.
> Maybe nndraft:moving, or something.  Secondly, you'd need a data
> structure giving, for each group, a list of msgids of messages that
> are to be moved into that group.  And the last piece in the puzzle
> is something that injects additional articles into a group, along
> the lines of `G j', perhaps.

Shouldn't be too hard.  Insert (in the global registry that's still to
come) something like this associated with the message ID:

'('queued-move-when-connected group-name)

then on startup, Gnus can scan the registry and (if connected) do the
move.

> Hm.  I wonder if it could be easier to implement a backend that
> stores messages by their message id and that maintains a mapping
> between numbers and ids.  Then the agent could be changed to use
> that backend.  Then articles could be moved while offline.  No, it
> doesn't really sound easier.  Maybe it is better to stick with the
> old article number approach.

I honestly do not know.  I would guess it's a lot of work in the
backend, though.  Maybe the registry could be used to trace a message
ID to the group and article ID it currently occupies.  That's not too
hard, though the registry hooks will have to be modified to also take
the new article ID.

Ted




  reply	other threads:[~2003-02-07 22:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 21:50 Kai Großjohann
2003-02-07 22:54 ` Ted Zlatanov [this message]
2003-02-08  2:09   ` Ted Zlatanov
2003-02-08 15:22 ` Frank Schmitt
2003-02-08 15:45   ` Simon Josefsson
2003-02-08 18:06     ` Frank Schmitt
2003-02-09 14:53   ` Kai Großjohann

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=m33cmz7ld7.fsf@heechee.beld.net \
    --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).