From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50339 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: message registry for Gnus Date: Mon, 24 Feb 2003 10:36:21 -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: <4nbs11wv0q.fsf@chubby.bwh.harvard.edu> References: <4n3cn9i6kq.fsf@lockgroove.bwh.harvard.edu> <4nznopxxn5.fsf@lockgroove.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 1046101047 8058 80.91.224.249 (24 Feb 2003 15:37:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2003 15:37:27 +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 18nKfU-00025c-00 for ; Mon, 24 Feb 2003 16:37:24 +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 18nKer-0002zC-00; Mon, 24 Feb 2003 09:36:45 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 24 Feb 2003 09:37:45 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id JAA06033 for ; Mon, 24 Feb 2003 09:37:33 -0600 (CST) Original-Received: (qmail 1293 invoked by alias); 24 Feb 2003 15:36:29 -0000 Original-Received: (qmail 1287 invoked from network); 24 Feb 2003 15:36:28 -0000 Original-Received: from clifford.bwh.harvard.edu (134.174.9.41) by 66.230.238.6 with SMTP; 24 Feb 2003 15:36:28 -0000 Original-Received: from chubby.bwh.harvard.edu (chubby [134.174.9.50]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h1OFaLj22559 for ; Mon, 24 Feb 2003 10:36:21 -0500 (EST) Original-Received: (from tzz@localhost) by chubby.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h1OFaLN09486; Mon, 24 Feb 2003 10:36:21 -0500 (EST) Original-To: ding@gnus.org 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@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sat, 22 Feb 2003 23:20:51 +0100") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50339 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50339 On Sat, 22 Feb 2003, larsi@gnus.org wrote: > Ted Zlatanov writes: > >> Is the data header for the article available somehow at the point >> of cache insertion in nnmail.el? > > No, the header data is being built by Gnus upon group entry. When > nnmail is snarfing mail, it has no such structure. Hrm. Can I put the spool hook at a later point, just after the header data is available? >> Also, to save a hashtable, it seems like I have to convert it to an >> alist and put that in a file, and convert the other way when I want >> to load from a file. Is there an easier way? > > No, that's the way to do it. :-) Hash tables (well, obarrays, > really) don't (to use a Javaish term) serialize very well. Could something like hashtable-to-alist-string and hashtable-from-alist-string be added to the Gnus core? It would make my life easier, and I'm definitely not the person to write reliable versions of these functions :) I think these functions could probably be useful in other places as well; I looked but found no such functionality already in place. Serialization would be a wonderful feature for Emacs Lisp in general. Thanks! Ted