nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] What OS/Architecture Do You Run nmh On?

2018-02-16 20:11:11
I suppose that  depends on the meaning of the  word ``deliver'' and also
whether or  not the refile  command is moving  message 42 from  the same
filesystem, or crossing filesystem boundaries.  In the former case, it's
an  atomic operation,  but in  the latter  case, to  retain the  ``crash
proof'' nature of Maildir, it would seem that one should ``deliver'' the
message first into  Maildir/tmp, followed by an atomic  move into either
Maildir/new or Maildir/cur.

I didn't really get into the details, but absolutely, any nmh Maildir
implementation would certainly have to make sure the move into "cur" was
atomic; obviously if it was the same filesystem rename() would work, but
otherwise a copy into tmp first is the way to go.

--Ken

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>