From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/37182 Path: main.gmane.org!not-for-mail From: Jon Allen Boone Newsgroups: gmane.emacs.gnus.general Subject: Re: Packing nnml folders... Date: Fri, 27 Jul 2001 21:43:38 -0400 Sender: tex@delamancha.org Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035172642 12517 80.91.224.250 (21 Oct 2002 03:57:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:57:22 +0000 (UTC) Cc: ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 14480 invoked from network); 28 Jul 2001 01:44:24 -0000 Original-Received: from amicus.delamancha.org (216.7.21.37) by gnus.org with SMTP; 28 Jul 2001 01:44:24 -0000 Original-Received: by amicus.delamancha.org (Postfix, from userid 500) id 153CBE27; Fri, 27 Jul 2001 21:43:38 -0400 (EDT) Original-To: Lloyd Zusman In-Reply-To: (Lloyd Zusman's message of "27 Jul 2001 20:47:04 -0400") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley) Original-Lines: 45 Xref: main.gmane.org gmane.emacs.gnus.general:37182 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:37182 Kai, thanks for your help. :-) Lloyd, I'm glad you tried this first! :-) Lloyd Zusman writes: > > There's gotta be a better way to do this, however ... ??? I propose that we write a function to handle this. I think it is fairly straight-forward. In fact, I imagine we could probably re-use existing code. Here's the algorithm that the function would use: Step 1: Mark all articles in group. This is to work on the entire group. Step 2: Re-spool marked articles, using normal methods with the exception that we will ignore split variables. This will result in everything being densely packed but numbered starting with the first available article number. Note: we want to ignore any split variables to prevent articles from mysteriously vanishing from the group. Step 3: Mark all articles in the group. Step 4: Re-spool marked articles, ignoring split variables, starting with article #1. The one other thing I am worried about is making sure that no new articles appear while we are in the packing process. I believe that this is different from the algorithm that nmh uses in that if the first article in the group is already #1, nmh will leave it alone and my algorithm will renumber it twice. :-) -jon -- ------------------ Jon Allen Boone tex@delamancha.org