From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 4BF8D6DE00D3 for ; Fri, 4 Nov 2016 19:15:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -2.734 X-Spam-Level: X-Spam-Status: No, score=-2.734 tagged_above=-999 required=5 tests=[AWL=-0.424, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZPZQx2CeW_Rm for ; Fri, 4 Nov 2016 19:15:21 -0700 (PDT) Received: from master.debian.org (master.debian.org [82.195.75.110]) by arlo.cworth.org (Postfix) with ESMTPS id 7F9F76DE00B8 for ; Fri, 4 Nov 2016 19:15:21 -0700 (PDT) Received: from pabs by master.debian.org with local (Exim 4.84_2) (envelope-from ) id 1c2qVo-0001fP-9e; Sat, 05 Nov 2016 02:15:16 +0000 Message-ID: <1478312104.1979.8.camel@debian.org> Subject: Re: [Paul Wise] Bug#843127: notmuch: race condition in `notmuch new`? From: Paul Wise To: Jani Nikula , David Bremner , notmuch@notmuchmail.org Date: Sat, 05 Nov 2016 10:15:04 +0800 In-Reply-To: <87zilfxetb.fsf@nikula.org> References: <87a8dfl8em.fsf@tesseract.cs.unb.ca> <87zilfxetb.fsf@nikula.org> Organization: Debian Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-PVIsWBptnEHviuLlzv8H" X-Mailer: Evolution 3.22.1-2 Mime-Version: 1.0 X-Mailman-Approved-At: Sat, 05 Nov 2016 13:12:57 -0700 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2016 02:15:22 -0000 --=-PVIsWBptnEHviuLlzv8H Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2016-11-04 at 20:47 +0200, Jani Nikula wrote: > Do you have some other software modifying your mail store while > you're running notmuch new? The folder in question has my laptop's exim4 service writing to it when my cron jobs generate email. On Fri, 2016-11-04 at 13:26 -0300, David Bremner wrote: > inotify sounds a bit overcomplicated and perhaps non-portable? There are similar APIs on non-Linux OSes but there is indeed no common API or library to abstract away this sort of feature AFAIK. > It should probably just tolerate disappearing files better, consider > that a warning. That sounds like the correct solution indeed. Probably if the code notices that a file disappeared, it should also rescan the nearby folders to see if the file was moved instead of deleted. > As a workaround, if you can replace background use of notmuch-new > with notmuch-insert (and I understand this doesn't work for > everyone), you will eliminate this kind of race condition. Hmm, I don't think that will work for me. --=20 bye, pabs https://wiki.debian.org/PaulWise --=-PVIsWBptnEHviuLlzv8H Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIcBAABCAAGBQJYHUCoAAoJEDEWul6f+mmjS+8P/RupB05/Dz8bdC5TMHPdxHnR ybtUQAYkiwAQVCz6ydkeFqp3hRyjaoTZ4xjNDuHaBarksmUT9noc3H5RzJCkAUAw uaa2q5mi+Sdk3jUyj94nwTc6npMtWkB+MnJy8y5Qpnziajfm3cO73k7souwZhzlJ MSZMl3BRcELNJmr5mtXcPnqQeVeaVz/TrF87lQOP7ZvWPofwtwBU2A+h3S1tPFBA kmMkCDiJlP1kWXL7ad5m80njrRbFR88Fsr/rftVi40LkXWNHzG4qbF2ILPRksEhq VRXrWfBZOuF9Rms7oQRYw5g54SyP2OaDnDeN8QM5eeQK0mhy0aXsB3HG7RCATVXo 4ZxpNy38McJHwbiSEaGyvEP+usZzurjoPJm3szTi3w6NMzLlIxK+CTEwOdjKMk0k Ew8yRvn3WvAHOKffiu1MpyXURpdMWJP+0hZj1R6hjRZuO8KcO4FeiNVOgn92qlbN rJkMs18TZZCC9UhngjEYOT1yt1hUrPZileLe1l3NH82oM4hl2+rizN9QqfmGigRm cIok82axPwP2kggUboz1bafn9VuPsyP0Mv42YpNEweh6S2iDNXYUBlh7xbzGk2AY ISbvL6U9dctLgDF9rT0PLg2R37rcOQXzMO4PyKv2n4g68Sa7Bh4At7VV2ljGrd8g GCpHQpz7ScZ22rilYrql =JxsB -----END PGP SIGNATURE----- --=-PVIsWBptnEHviuLlzv8H--