Gnus development mailing list
 help / color / mirror / Atom feed
* concurrent synchronization of nnmaildir directories
@ 2003-12-06 13:10 James Leifer
  2003-12-09 20:10 ` Paul Jarc
  0 siblings, 1 reply; 4+ messages in thread
From: James Leifer @ 2003-12-06 13:10 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-09 21:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-06 13:10 concurrent synchronization of nnmaildir directories James Leifer
2003-12-09 20:10 ` Paul Jarc
2003-12-09 21:10   ` James Leifer
2003-12-09 21:14     ` Paul Jarc

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).