From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48122 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: nnima-split-with-parent Date: Mon, 09 Dec 2002 10:54:23 -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: <4n3cp789xs.fsf@brainy.bwh.harvard.edu> References: <4n7kemaoaj.fsf@brainy.bwh.harvard.edu> <84n0nhrhys.fsf@lucy.cs.uni-dortmund.de> <848yz1rgpp.fsf@lucy.cs.uni-dortmund.de> <84of7xpof5.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039449413 20423 80.91.224.249 (9 Dec 2002 15:56:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Dec 2002 15:56:53 +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 18LQH5-0005J1-00 for ; Mon, 09 Dec 2002 16:56:51 +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 18LQGE-0002ar-00; Mon, 09 Dec 2002 09:55:58 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 09 Dec 2002 09:56:47 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@[209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id JAA28719 for ; Mon, 9 Dec 2002 09:56:30 -0600 (CST) Original-Received: (qmail 14107 invoked by alias); 9 Dec 2002 15:54:53 -0000 Original-Received: (qmail 14102 invoked from network); 9 Dec 2002 15:54:52 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by gnus.org with SMTP; 9 Dec 2002 15:54:52 -0000 Original-Received: from brainy.bwh.harvard.edu (brainy [134.174.9.237]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id gB9FsNR22899; Mon, 9 Dec 2002 10:54:23 -0500 (EST) Original-Received: (from tzz@localhost) by brainy.bwh.harvard.edu (8.10.2+Sun/8.11.0) id gB9FsNk23609; Mon, 9 Dec 2002 10:54:23 -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),?= ding@gnus.org In-Reply-To: <84of7xpof5.fsf@lucy.cs.uni-dortmund.de> (kai.grossjohann@uni-duisburg.de's message of "Sat, 07 Dec 2002 21:25:02 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (sparc-sun-solaris2.8) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48122 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48122 On Sat, 07 Dec 2002, kai.grossjohann@uni-duisburg.de wrote: > Ted Zlatanov writes: > >> On Sat, 07 Dec 2002, kai.grossjohann@uni-duisburg.de wrote: >>> But this doesn't deal with the unqualified group names that are >>> currently in the file. >> >> We convert them to the nnmail-cache-primary-backend:groupname fully >> qualified format. Wouldn't that make sense? > > Usually, an unqualified group name is assumed to come from the > primary backend (ie, gnus-select-method). So it's not sufficient to > _just_ call the functions I gave. Here are the upgrade steps when running nnimap-split-with-parent, when it needs to load the history-cache: 1) does the history-cache (nnmail cache version 2) file exist? if yes, go to (3) 2) upgrade ~/.nnmail-cache to a new history-cache file, or create a new history-cache file if ~/.nnmail-cache does not exist a) creating a new file: just touch the file b) upgrading: all lines get prefixed with the return value of nnmail-cache-primary-backend, then a \t character 3) load the history-cache file with the "backend\tmessage-id\tgroupname" format Does that makes sense? From (3) on, all work is done with the new history-cache file. The user could even go back to using the old nnmail-split-with-parent function in their nnmail split, since ~/.nnmail-cache would be the same as before. Ted