From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48077 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: nnima-split-with-parent Date: Fri, 06 Dec 2002 15:24:36 -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: <4n7kemaoaj.fsf@brainy.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039206386 6194 80.91.224.249 (6 Dec 2002 20:26:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2002 20:26:26 +0000 (UTC) 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 18KP3J-0001bd-00 for ; Fri, 06 Dec 2002 21:26:25 +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 18KP2N-0006zF-00; Fri, 06 Dec 2002 14:25:27 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 06 Dec 2002 14:26:16 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id OAA23111 for ; Fri, 6 Dec 2002 14:25:59 -0600 (CST) Original-Received: (qmail 22072 invoked by alias); 6 Dec 2002 20:25:04 -0000 Original-Received: (qmail 22065 invoked from network); 6 Dec 2002 20:25:03 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by gnus.org with SMTP; 6 Dec 2002 20:25:03 -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 gB6KOaR17989 for ; Fri, 6 Dec 2002 15:24:36 -0500 (EST) Original-Received: (from tzz@localhost) by brainy.bwh.harvard.edu (8.10.2+Sun/8.11.0) id gB6KOa119620; Fri, 6 Dec 2002 15:24:36 -0500 (EST) Original-To: ding 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: ding 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:48077 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48077 I want nnimap-split-with-parent! :) I was looking at the nnmail-split-with-parent code, and I see that the nnmail cache is used for duplicate detection *and* for splitting with the parent. So it's not easy to abstract the nnmail cache as it is to arbitrary newsgroup names, we might get erroneous warnings about duplicates. I think the format for the "new" article-ID cache should be backend-name\tarticle-ID\tgroup-name We can keep the current nnmail cache as well, but this format can replace the old cache format with very little work. Maybe we can copy and fix up the new-cache from the old nnmail-cache if we're upgrading, and otherwise always use the new-cache file? We should separate the functionality into gnus-article-cache.el if it's going to be generalized (or whatever the file is called). Functions affected (new names are not necessarily final): nnmail-cache-insert: needs to be generalized to gnus-article-cache-insert, maybe figuring out the backend name instead of having it passed in for minimum code changes? nnmail-cache-fetch-group: needs to be generalized to gnus-article-cache-fetch-group, and the logic altered a little to allow for the backend name at beggining of line. Like the insert function, maybe it should figure out the current backend name instead of having it passed in for minimum code changes? nnmail-cache-id-exists-p: generalize to gnus-article-cache-id-exists-p, unchanged otherwise the other nnmail-cache-* functions should be easily migrated to gnus-article-cache-* I hope someone is interested in doing this or at least giving me some feedback... Ted