Gnus development mailing list
 help / color / mirror / Atom feed
From: James Leifer <James.Leifer@inria.fr>
Subject: concurrent synchronization of nnmaildir directories
Date: Sat, 06 Dec 2003 14:10:44 +0100	[thread overview]
Message-ID: <r77vfourls7.fsf@muscadet.inria.fr> (raw)

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



             reply	other threads:[~2003-12-06 13:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-06 13:10 James Leifer [this message]
2003-12-09 20:10 ` Paul Jarc
2003-12-09 21:10   ` James Leifer
2003-12-09 21:14     ` Paul Jarc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=r77vfourls7.fsf@muscadet.inria.fr \
    --to=james.leifer@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).