From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31982 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: (provide 'nnmaildir) Date: Mon, 31 Jul 2000 12:42:12 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: <20000715005611.8018.qmail@multivac.student.cwru.edu> <20000717182810.13970.qmail@multivac.student.cwru.edu> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035168332 17216 80.91.224.250 (21 Oct 2002 02:45:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:45:32 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id 03C0BD051E for ; Sun, 6 Aug 2000 15:06:27 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id RAC23763; Mon, 31 Jul 2000 17:46:12 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 31 Jul 2000 17:43:08 -0500 (CDT) Original-Received: from Post-Office.UH.EDU (Post-Office.UH.EDU [129.7.1.20]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id RAA01947 for ; Mon, 31 Jul 2000 17:42:07 -0500 (CDT) Original-Received: from CONVERSION-DAEMON by Post-Office.UH.EDU (PMDF V5.2-32 #40812) id <0FYK00G01MENUP@Post-Office.UH.EDU> for ding@hpc.uh.edu; Mon, 31 Jul 2000 11:42:28 -0500 (CDT) Original-Received: from mailhost.sclp.com (www.taekwondo.net [209.196.61.66]) by Post-Office.UH.EDU (PMDF V5.2-32 #40812) with ESMTP id <0FYK00E58MEJQZ@Post-Office.UH.EDU> for ding@hpc.uh.edu; Mon, 31 Jul 2000 11:42:21 -0500 (CDT) Original-Received: from multivac.student.cwru.edu (multivac.STUDENT.CWRU.Edu [129.22.239.69]) by mailhost.sclp.com (Postfix) with SMTP id D430AD051F for ; Mon, 31 Jul 2000 12:42:18 -0400 (EDT) Original-Received: (qmail 21423 invoked by uid 500); Mon, 31 Jul 2000 16:42:12 +0000 In-reply-to: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Sat, 29 Jul 2000 19:15:35 +0200" Original-To: ding@gnus.org Mail-followup-to: ding@gnus.org X-Mailer: Gnus v5.7/Emacs 20.7 Original-Lines: 61 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31982 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31982 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) writes: > Don't all the nnchoke-* functions accept a server parameter which > contains the necessary information? The server parameter is just the name - the second element of the select method. The optional defs parameter of the -open-server function is the cddr of the select method, which contains all the server parameters. Gnus will first call the backend's -open-server function, and it will pass the server parameters in defs. The -open-server function (typically) then relays the defs to nnoo-change-server, which remembers them for later. If you call nnoo-change-server again with the same server but with defs being nil, it will remember the old server parameters and do the appropriate setq assignments. So all is well for me. > On 24 Jul 2000, Paul Jarc wrote: > > - For moving articles between groups in nnmaildir, it makes sense to > > simply rename a message file and/or tweak some per-server > > persistent state data - in particular, *not* to copy a message > > from one file to another. I've redesigned my multiple-groups approach, so this is no longer an issue. A new version is here, and I think it's (almost) ready for general use. Important things still to be done: expiration, moving articles between groups. bugfix: new mail is now incorporated by nnmaildir-request-list instead of nnmaildir-retrieve-headers feature: headers and articles can be fetched by Message-ID feature: nnmaildir-retrieve-headers handles numeric fetch-old feature: multiple groups per server; one group per maildir feature: nnmaildir-directory is gone; nnmaildir-groups maps group names to maildirs Having only one group per maildir simplifies things greatly in nnmaildir; .qmail files can be used to filter messages into the appropriate places. A select method now looks like this: '(nnmaildir "whatever" (nnmaildir-groups (("groupname1" "/path/to/maildir1") ("groupname2" "/path/to/maildir2")))) If there is only one group, it doesn't need to be put in a list. The select method is destructively modified behind your back by nnmaildir-open-server - I don't think this will cause problems, will it? I think nntp.el does it too. If you were using the old version, migration will be mildly painful. (But it shouldn't be in the future.) First, kill (not just unsubscribe) all your nnmaildir groups. Now, in the cur/ directory in each of the maildirs you're using, execute this command: bash -c 'for i in *; do mv "$i" ../new/"${i%%:*}"; done' That will make all messages appear as new again. Now set up your new select method, fire up Gnus, and resubscribe to your groups. nnmaildir-retrieve-headers doesn't look outside the specified group, whereas nnmaildir-request-article does. Will this cause problems? The summary buffer will show some articles as having zero lines. I just now figured out how to fix this. paul