[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 <itz@buug.org> 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:
>>
>> http://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html
>>
>> 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.
Cheers,
Rainer
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
signature.asc
Description: PGP signature
- Re: From Gnus to mu4e, (continued)
- Re: From Gnus to mu4e, Rasmus, 2015/08/28
- Re: From Gnus to mu4e, Bastien, 2015/08/28
- Re: From Gnus to mu4e, Julien Cubizolles, 2015/08/27
- Re: From Gnus to mu4e, Suvayu Ali, 2015/08/27
- Re: From Gnus to mu4e, Ian Zimmerman, 2015/08/27
- Re: From Gnus to mu4e, Suvayu Ali, 2015/08/27
- Re: From Gnus to mu4e, Ian Zimmerman, 2015/08/27
- Re: From Gnus to mu4e,
Rainer M Krug <=
- Re: From Gnus to mu4e, Suvayu Ali, 2015/08/28
- Re: From Gnus to mu4e, Ian Zimmerman, 2015/08/28
- Re: From Gnus to mu4e, Suvayu Ali, 2015/08/30
- Re: From Gnus to mu4e, Rainer M Krug, 2015/08/28
- Re: From Gnus to mu4e, Suvayu Ali, 2015/08/27
- Re: From Gnus to mu4e, Glenn Morris, 2015/08/27
- Re: From Gnus to mu4e, Suvayu Ali, 2015/08/27
- Re: From Gnus to mu4e, Bastien, 2015/08/27
- Re: From Gnus to mu4e, Bastien, 2015/08/27
- Re: From Gnus to mu4e, Suvayu Ali, 2015/08/27