From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32893 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.gnus.general Subject: Re: "Fixing up" gnus - (how hard is this?). (was Re: (provide 'nnmaildir)) Date: 18 Oct 2000 15:07:15 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <87g0lt9amk.fsf@raven.localnet> References: <87aec3o3u6.fsf_-_@raven.localnet> <871yxfnlnz.fsf@raven.localnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169099 22335 80.91.224.250 (21 Oct 2002 02:58:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:58:19 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id E13FED051E for ; Wed, 18 Oct 2000 16:08:28 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB17843; Wed, 18 Oct 2000 15:07:51 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 18 Oct 2000 15:07:05 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA06264 for ; Wed, 18 Oct 2000 15:06:51 -0500 (CDT) Original-Received: from mail.austin.rr.com (sm1.texas.rr.com [24.93.35.54]) by mailhost.sclp.com (Postfix) with ESMTP id E1D14D051E for ; Wed, 18 Oct 2000 16:07:16 -0400 (EDT) Original-Received: from omen.localnet ([24.162.113.38]) by mail.austin.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Wed, 18 Oct 2000 15:09:15 -0500 Original-Received: from raven.localnet (raven.localnet [192.168.1.7]) by omen.localnet (Postfix) with ESMTP id 1A91827C4B; Wed, 18 Oct 2000 15:07:16 -0500 (CDT) Original-Received: by raven.localnet (Postfix, from userid 1000) id 86443AEA4; Wed, 18 Oct 2000 15:07:15 -0500 (CDT) Original-To: prj@po.cwru.edu (Paul Jarc) In-Reply-To: prj@po.cwru.edu's message of "18 Oct 2000 11:13:24 -0400" Original-Lines: 21 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32893 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32893 prj@po.cwru.edu (Paul Jarc) writes: > nnmaildir's been doing that since the 2000-09-03 release. :) But use > rename(), not link()/unlink(), for appropriate atomicity. It's not so > critical when there are no concurrent readers, but it still saves you > a system call. I haven't checked the Emacs sources, but I'm assuming > (rename-file) uses rename() when ok-if-already-exists is non-nil. Well the tricks I know of were designed to make sure you DTRT (as much as possible anyway), even in the case where the files are on NFS mounted volumes, but I don't know if you want to worry about that, and it's possible that rename handles that already... > Hmm... nnmaildir's state files are non-Lisp text, parsed manually. > I suppose (read)ing Lisp expressions would probably be faster, > though. I hadn't thought of that. Might be a lot easier for you to handle code-wise too. -- Rob Browning PGP=E80E0D04F521A094 532B97F5D64E3930