From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49930 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Move messages while offline using registry? Date: Fri, 07 Feb 2003 17:54:12 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: owner-ding@hpc.uh.edu Message-ID: References: <844r7fzro3.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044657787 31881 80.91.224.249 (7 Feb 2003 22:43:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 22:43:07 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hHD6-0008Hk-00 for ; Fri, 07 Feb 2003 23:43:05 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18hHEP-0004xA-00; Fri, 07 Feb 2003 16:44:25 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 07 Feb 2003 16:45:22 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA23324 for ; Fri, 7 Feb 2003 16:45:09 -0600 (CST) Original-Received: (qmail 65209 invoked by alias); 7 Feb 2003 22:44:08 -0000 Original-Received: (qmail 65204 invoked from network); 7 Feb 2003 22:44:08 -0000 Original-Received: from ns3.beld.net (208.229.215.83) by 66.230.238.6 with SMTP; 7 Feb 2003 22:44:08 -0000 Original-Received: from heechee.beld.net (dhcp-0-30-bd-1-93-b2.cpe.beld.net [24.233.66.27]) by ns3.beld.net (Postfix) with ESMTP id 1A71C3B8A2; Fri, 7 Feb 2003 17:44:07 -0500 (EST) Original-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) 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" Mail-Followup-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann), ?=@ns3.beld.net, ding@gnus.org 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") User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49930 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49930 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