From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48065 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: NOV code in Gnus Date: Fri, 06 Dec 2002 14:41:28 +0100 Organization: University of Dortmund, Germany Sender: owner-ding@hpc.uh.edu Message-ID: <848yz3b6yf.fsf@lucy.cs.uni-dortmund.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039182142 21969 80.91.224.249 (6 Dec 2002 13:42:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2002 13:42:22 +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 18KIkG-0005i9-00 for ; Fri, 06 Dec 2002 14:42:21 +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 18KIjr-0004YT-00; Fri, 06 Dec 2002 07:41:55 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 06 Dec 2002 07:42:45 -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 HAA22353 for ; Fri, 6 Dec 2002 07:42:30 -0600 (CST) Original-Received: (qmail 9594 invoked by alias); 6 Dec 2002 13:41:35 -0000 Original-Received: (qmail 9589 invoked from network); 6 Dec 2002 13:41:34 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 6 Dec 2002 13:41:34 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18KIs4-0007GN-00 for ; Fri, 06 Dec 2002 14:50:24 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 29 Original-NNTP-Posting-Host: pd9e1edc2.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1039182624 27441 217.225.237.194 (6 Dec 2002 13:50:24 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 6 Dec 2002 13:50:24 GMT User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:hpK8vKtZeui3ee6KiTfcz5/Z5FA= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48065 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48065 Jan Rychter writes: > So, I'm thinking about a unified interface for storing and accessing NOV > data. Yes. I think it might be quite a lot of work. Internally, Gnus is divided into something that we might call a frontend and the backends (ie, nnml, nnfolder, nnimap, nnmaildir, ...). Gnus defines a so-called backend interface. When you enter a group, for building the summary buffer the frontend requests the necessary data from the backend. The data is passed through a buffer. The format of the buffer needs to be either NOV, or it needs to be a sequence of RFC-822-style message headers. (I'm not sure about the separation between the headers for two messages in the second case.) I think it might be useful to augment the frontend/backend interface in such a way that Lisp data is passed instead of buffer contents. If you don't want to change the backend interface, then your best bet is to transmogrify the information into NOV format. That is likely to be a performance hit over just inserting some file contents... But I haven't tried it so maybe it would work to generate the NOV from, say, an SQL data base on the fly. -- ~/.signature is: umop ap!sdn (Frank Nobis)