[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: From Gnus to mu4e

From: Rainer M Krug
Subject: Re: From Gnus to mu4e
Date: Fri, 28 Aug 2015 10:25:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

Ian Zimmerman <address@hidden> writes:

> On 2015-08-28 02:14 +0200, Suvayu Ali wrote:
>> No, it's not.  AFAIK on most (all?) *nix filesystems, basic operations
>> are atomic.  See for example this (outdated) list:
>> E.g., this breaks down when you talk about network mounts like NFS (not
>> sure about SSHFS), but it is a valid assumption as long as your storage
>> is local.
> Assume there's a message ~/Mail/inbox/cur/1440718280.10956_2.ahiker:2,S
> MUA 1 wants to set the "tagged" flag, which means renaming
> 1440718280.10956_2.ahiker:2,S -> 1440718280.10956_2.ahiker:2,FS
> MUA 2 wants to set the "replied" flag, which means renaming
> 1440718280.10956_2.ahiker:2,S -> 1440718280.10956_2.ahiker:2,RS
> Only one of them can succeed, depending on the order they try.  And
> final state also depends on that order.

Interesting discussion - and I am learning that I do not know enough to
say that there *can* be race conditions, but I know that they are *bad*
when they occur and can lead to corruption or undefined behavior. And I
also know that I do not want this, particularly not in email.
So using dovecot to RW access the maildir is the safe way to go.
Notmuch is also accessing the maildir directly, but only read-only.



Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]