Re: [PATCH v6 00/17] Fix 'notmuch new' atomicity issues
authorAustin Clements <amdragon@MIT.EDU>
Mon, 26 Sep 2011 22:07:01 +0000 (18:07 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:29 +0000 (09:39 -0800)
04/02378d3e1146778c7bb635f285ab8643fc05c8 [new file with mode: 0644]

diff --git a/04/02378d3e1146778c7bb635f285ab8643fc05c8 b/04/02378d3e1146778c7bb635f285ab8643fc05c8
new file mode 100644 (file)
index 0000000..df86b68
--- /dev/null
@@ -0,0 +1,115 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 05744431FD0\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Sep 2011 15:04:41 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id cAPGnMRdh1QL for <notmuch@notmuchmail.org>;\r
+       Mon, 26 Sep 2011 15:04:40 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU\r
+       [18.9.25.12])\r
+       by olra.theworths.org (Postfix) with ESMTP id 63011431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Sep 2011 15:04:40 -0700 (PDT)\r
+X-AuditID: 1209190c-b7fd26d0000008df-5c-4e80f6f79879\r
+Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])\r
+       by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id A3.6A.02271.7F6F08E4; Mon, 26 Sep 2011 18:04:39 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id p8QM4ciw006611; \r
+       Mon, 26 Sep 2011 18:04:39 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id p8QM4bUL001025\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Mon, 26 Sep 2011 18:04:38 -0400 (EDT)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.72)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1R8JKH-0003Kf-Cj; Mon, 26 Sep 2011 18:07:01 -0400\r
+Date: Mon, 26 Sep 2011 18:07:01 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: David Bremner <david@tethera.net>\r
+Subject: Re: [PATCH v6 00/17] Fix 'notmuch new' atomicity issues\r
+Message-ID: <20110926220701.GL17905@mit.edu>\r
+References: <87ei34rnc5.fsf@yoom.home.cworth.org>\r
+       <1307822683-848-1-git-send-email-amdragon@mit.edu>\r
+       <BANLkTimeWnn5YtKjarFB8f8Fowvz0PxK2Q@mail.gmail.com>\r
+       <CAH-f9WvAFuVp-6u6tFgbcPEGW304wkGy=uhSOGhbNXd0m7H3mw@mail.gmail.com>\r
+       <87ty8gobv0.fsf@zancas.localnet>\r
+       <87bouabpic.fsf@rocinante.cs.unb.ca>\r
+       <20110924040244.GE17905@mit.edu> <871uv5mjpg.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <871uv5mjpg.fsf@zancas.localnet>\r
+User-Agent: Mutt/1.5.20 (2009-06-14)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IR4hTV1v3+rcHPYM9pFosbrd2MFtdvzmR2\r
+       YPJ4tuoWs8eWQ++ZA5iiuGxSUnMyy1KL9O0SuDLet2xkLnjFUfGq/zZ7A2MXexcjJ4eEgIlE\r
+       0+wNzBC2mMSFe+vZuhi5OIQE9jFKfJvRB+VsYJTY8GgvI4Rzkkniyb4rLBDOEkaJHQsvs4L0\r
+       swioSmydcYMFxGYT0JDYtn85I4gtAhS/um0yG4jNLCAt8e13M1MXIzuHsICDxDc1kCivgI7E\r
+       9m+zmCBGfmGS6H52nx0iIShxcuYTFohWLYkb/14CFXGAjVn+jwMkzCmgK7Hp+CWwElEBFYlr\r
+       +9vZJjAKzULSPQtJ9yyE7gWMzKsYZVNyq3RzEzNzilOTdYuTE/PyUot0DfVyM0v0UlNKNzGC\r
+       w1qSZwfjm4NKhxgFOBiVeHhnbmvwE2JNLCuuzD3EKMnBpCTK2/IJKMSXlJ9SmZFYnBFfVJqT\r
+       WnyIUYKDWUmE1/Q1UI43JbGyKrUoHyYlzcGiJM57cIeDn5BAemJJanZqakFqEUxWhoNDSYL3\r
+       0legRsGi1PTUirTMnBKENBMHJ8hwHqDhyl9AhhcXJOYWZ6ZD5E8xKkqJ8z4AaRYASWSU5sH1\r
+       wtLOK0ZxoFeEeQWASUiIB5iy4LpfAQ1mAhqcU1MLMrgkESEl1cA4fZM/w8wb6tsFameqhexc\r
+       sEZvcWBp6e9Zi4V0Xuo0JUzYtkcsYsqk14dU3uk+TajP7/q95uu9JyyhZxqv8tqY8h9ee6Fb\r
+       KUvTZdvyMJn5qw2OnXeTSllaXbGsuTJ+sVhOwXYtNuZZqedna0y2fXgw+3UVY+n8PbEf94np\r
+       3n1m+GtB6PN/TMprlFiKMxINtZiLihMBVItyHBYDAAA=\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 26 Sep 2011 22:04:41 -0000\r
+\r
+Quoth David Bremner on Sep 24 at 11:36 pm:\r
+> On Sat, 24 Sep 2011 00:03:02 -0400, Austin Clements <amdragon@MIT.EDU> wrote:\r
+> > \r
+> > Awesome.  Only seven more to go!\r
+> \r
+> The remaining seven are pushed, along with some related debian packaging\r
+> things.\r
+\r
+Huzzah!\r
+\r
+> Austin, could I bug you for some atomicity related items for NEWS? I\r
+> guess at least the 3 new library calls should be mentioned.\r
+\r
+In fact, I've been looking forward to writing some NEWS items!\r
+\r
+\r
+Correct handling of interruptions during "notmuch new"\r
+\r
+  "notmuch new" now operates as a series of small, self-consistent\r
+  transactions, so it can correctly resume after an interruption or\r
+  crash.  Previously, interruption could lose existing tags, fail to\r
+  detect messages on resume, or leave the database in a state\r
+  temporarily or permanently inconsistent with the mail store.\r
+\r
+Library changes\r
+---------------\r
+\r
+New functions\r
+\r
+  notmuch_database_begin_atomic and notmuch_database_end_atomic allow\r
+  multiple database operations to be performed atomically.\r
+\r
+  notmuch_database_find_message_by_filename does exactly what it says.\r