From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.help Subject: Re: From Gnus to mu4e Date: Fri, 28 Aug 2015 10:25:12 +0200 Message-ID: References: <87d1yhpsbr.fsf@free.fr> <87lhczyl1p.fsf@free.fr> <87a8tezf7x.fsf@free.fr> <87vbc0pgkp.fsf@free.fr> <20150827233408.GD30233@chitra.no-ip.org> <20150827234228.11079.2CAD2C13@ahiker.mooo.com> <20150828001444.GF30233@chitra.no-ip.org> <20150828001629.11433.17209627@ahiker.mooo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1440750347 9879 80.91.229.3 (28 Aug 2015 08:25:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 08:25:47 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ian Zimmerman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 28 10:25:36 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZVEyb-0000nB-Iw for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 10:25:33 +0200 Original-Received: from localhost ([::1]:46645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVEya-0007lp-W0 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2015 04:25:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVEyO-0007lf-4E for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 04:25:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVEyK-0004Pr-5Z for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 04:25:20 -0400 Original-Received: from mail-wi0-f178.google.com ([209.85.212.178]:34711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVEyJ-0004Ou-VE for help-gnu-emacs@gnu.org; Fri, 28 Aug 2015 04:25:16 -0400 Original-Received: by wibcx1 with SMTP id cx1so6121923wib.1 for ; Fri, 28 Aug 2015 01:25:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=bcVsempH5pI2LOv2GlxtlKLfLq+kADoy4j8z8r5LshI=; b=YCiKCwqC1qKGY+UJkOdYZzCQGbmF+ctkbXS3dBq0yfRBgDV9YtpZoJiq41e4xDjG5t cIfH/LHRyuTxo/ujsuUHZ5VzulByClnIp0EKpTb0aeYPaP+LgGyAJQqLTAzN/XowfKPP AvMIKGWSzbjqih8iIJyLcsMPNBI63BB/0pxUSBr9U72HcFN0tfZCNq4x0TK2FjWFi1hb eUmpohALjXcRXAE/JjVcGweDLh2+2bwXTe/uvf8x8jLf7UuubMafay9aSmB8QjTso06D i9pNMcpoUSSmt5w8DYcqSFfAiD0Y30+ckJlsTF1Xnltx/Ib4lKgX6ax6toapK/iHJL4t l/LA== X-Received: by 10.194.175.200 with SMTP id cc8mr10327406wjc.87.1440750315402; Fri, 28 Aug 2015 01:25:15 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by smtp.gmail.com with ESMTPSA id n6sm2638215wix.1.2015.08.28.01.25.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Aug 2015 01:25:14 -0700 (PDT) In-Reply-To: <20150828001629.11433.17209627@ahiker.mooo.com> (Ian Zimmerman's message of "Thu, 27 Aug 2015 17:24:33 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.178 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106883 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ian Zimmerman 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: >>=20 >> http://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html >>=20 >> 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 =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQEcBAEBCAAGBQJV4BroAAoJENvXNx4PUvmCmDMH/2xoVckWT8mmu54j7h2Qw8bv FppGAJ36OMl4KTiV34nDlp5p7sotyD9rKgsGE534GcPNCxVKrQZJe1wLOCHb9UT+ tdHr0UJ1XyHRo2mw4wzefJUX5dx1mCDCa3bt9I9BBKEqCEgNLCbB/AG30NGRk4Ls 7kuNUE1wvXYm2hzfPM0nE9bdSf7f7ZcHtXTJCp41a9NNneasEhJdKO4EYY0xySuT Dh2NfK2ft9XvF/vr2h4iwe7ljd0vOtWkSvP2QN/CBha7rSfwKhblYTowmmr8lN6m ud2/1YwIgWrLEXd0cfKkV1SEbN/V1n8ie190hJYkTeBmcF7fzCHY8HTYs0/lfC4= =GHBv -----END PGP SIGNATURE----- --=-=-=--