From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31458 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: moving mail from nnml -> nnimap Date: Mon, 19 Jun 2000 16:44:00 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <86itv57obz.fsf@everest.overx.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035167865 14119 80.91.224.250 (21 Oct 2002 02:37:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:37:45 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id BF17AD051F for ; Mon, 19 Jun 2000 10:48:18 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id JAC17051; Mon, 19 Jun 2000 09:44:33 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 19 Jun 2000 09:43:45 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id JAA20146 for ; Mon, 19 Jun 2000 09:43:35 -0500 (CDT) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by mailhost.sclp.com (Postfix) with ESMTP id 1485ED051F for ; Mon, 19 Jun 2000 10:44:09 -0400 (EDT) Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id QAA07400; Mon, 19 Jun 2000 16:44:01 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id QAA03240; Mon, 19 Jun 2000 16:44:01 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id QAA06862; Mon, 19 Jun 2000 16:44:00 +0200 X-Authentication-Warning: lucy.cs.uni-dortmund.de: grossjoh set sender to Kai.Grossjohann@CS.Uni-Dortmund.DE using -f Original-To: dayton@overx.com In-Reply-To: Soren Dayton's message of "19 Jun 2000 09:11:28 -0500" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.0.90 Original-Lines: 34 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31458 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31458 Soren Dayton writes: > I have about 4 years worth of mail in nnml and I would like to move it > to nnimap, keeping the flags (!, *, R, etc), if possible. is there > a good way to do it? For each group nnml:foo do create group nnimap:foo enter group nnml:foo using `C-u RET', listing all messages mark all articles using `M P a' move all messages to nnimap:foo using `B m' end for This does NOT keep the `*' mark! AFAIK, it is not possible to keep the cache mark in an easy way. Hm. You also can't be sure the the message numbers are the same in nnml and nnimap. If they were the same, it might be sufficient to just rename the cache directory. But here's something that you could do: you could extract the list of cached messages (by message id) from the .overview files in ~/News/cache for the nnml groups. Then, you can do a nested loop algorithm: For each group foo do for each message id MID in .overview file for cache of nnml:foo do cache message MID in nnimap:foo end for end for You could write little Lisp snippets to automate these tasks. kai -- I like BOTH kinds of music.