From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55107 Path: main.gmane.org!not-for-mail From: James Leifer Newsgroups: gmane.emacs.gnus.general Subject: concurrent synchronization of nnmaildir directories Date: Sat, 06 Dec 2003 14:10:44 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: Reply-To: James Leifer NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070725761 1503 80.91.224.253 (6 Dec 2003 15:49:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Dec 2003 15:49:21 +0000 (UTC) Original-X-From: ding-owner+M3647@lists.math.uh.edu Sat Dec 06 16:49:19 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ASegJ-0000gT-00 for ; Sat, 06 Dec 2003 16:49:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1ASeeJ-00048x-00; Sat, 06 Dec 2003 09:47:15 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1ASeeA-00048p-00 for ding@lists.math.uh.edu; Sat, 06 Dec 2003 09:47:06 -0600 Original-Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by justine.libertine.org (Postfix) with ESMTP id 2AD283A0073 for ; Sat, 6 Dec 2003 09:47:05 -0600 (CST) Original-Received: from muscadet.inria.fr (muscadet.inria.fr [128.93.8.12]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hB6Fl4126968 for ; Sat, 6 Dec 2003 16:47:04 +0100 (MET) Original-Received: by muscadet.inria.fr (Postfix, from userid 11404) id 343FA7A5F; Sat, 6 Dec 2003 16:47:04 +0100 (CET) Original-To: ding@gnus.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55107 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55107 Hi, I'm switching some of my groups from the trusty-rusty nnmh to the more robust nnmaildir 8-). My main motivation is to be able to easily synchronize maildirs on my desktop and laptop. I'll do the sync with unison or some scripts I cook up myself. To do the synchronization, I have to be able to add, modify, and delete already delivered messages. In particular, is it safe to do the following operations while nnmaildir is *running*? * Add a new message with its marks, i.e. add a file in foo/cur and update foo/.nnmaildir/{marks/{read,reply,...},nov} appropriately. * Modify the marks of an existing message, i.e. add and delete entries in foo/.nnmaildir/marks/{read,reply,...} * Delete an existing message, i.e. delete a file in foo/cur and the corresponding entries in foo/.nnmaildir/{marks/{read,reply,...},nov}. Since the filesystem doesn't allow me to add a message and its marks in a single atomic step, does the order of the operations and the modification times of the files matter? Is it dangerous to do these operations while nnmaildir is regenerating nov data, reading or saving marks, etc? Do I need to do anything to foo/.nnmaildir/num? Comments would be gratefully received. -James