--- /dev/null
+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 BC4EB431FC3\r
+ for <notmuch@notmuchmail.org>; Mon, 7 Oct 2013 15:33:33 -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 b0AYO4UyDqMM for <notmuch@notmuchmail.org>;\r
+ Mon, 7 Oct 2013 15:33:27 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-8.mit.edu (dmz-mailsec-scanner-8.mit.edu\r
+ [18.7.68.37])\r
+ by olra.theworths.org (Postfix) with ESMTP id 7011F431FAE\r
+ for <notmuch@notmuchmail.org>; Mon, 7 Oct 2013 15:33:27 -0700 (PDT)\r
+X-AuditID: 12074425-b7f1c8e0000009c7-12-525336b60477\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
+ by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id E9.58.02503.6B633525; Mon, 7 Oct 2013 18:33:26 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+ by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id r97MXP4C008284\r
+ for <notmuch@notmuchmail.org>; Mon, 7 Oct 2013 18:33:26 -0400\r
+Received: from drake.dyndns.org (26-4-172.dynamic.csail.mit.edu [18.26.4.172])\r
+ (authenticated bits=0)\r
+ (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r97MXNoR028497\r
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
+ for <notmuch@notmuchmail.org>; Mon, 7 Oct 2013 18:33:25 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+ (envelope-from <amdragon@mit.edu>) id 1VTJMh-0006bf-IN\r
+ for notmuch@notmuchmail.org; Mon, 07 Oct 2013 18:33:23 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 00/11] Fix search tagging races\r
+Date: Mon, 7 Oct 2013 18:33:10 -0400\r
+Message-Id: <1381185201-25197-1-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.8.4.rc3\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42IR4hRV1t1mFhxkcGS3pcX1mzOZHRg9nq26\r
+ xRzAGMVlk5Kak1mWWqRvl8CVcWv9XPaCT2wV847fZW9gPM/axcjJISFgInFk2x1mCFtM4sK9\r
+ 9WwgtpDAPkaJv4u0IexzjBJbGxy6GLmA7IdMEndWXWKGSOxmlOhcZQ5iswloSGzbv5wRxBYR\r
+ kJbYeXc22AJhAX2J6d1TWEBsFgFViVNXn4At4BVwkOh9dp4JYrGSxMJT21gnMPIsYGRYxSib\r
+ klulm5uYmVOcmqxbnJyYl5dapGuhl5tZopeaUrqJEeRrdhfVHYwTDikdYhTgYFTi4c04GhQk\r
+ xJpYVlyZe4hRkoNJSZT3gXFwkBBfUn5KZUZicUZ8UWlOavEhRgkOZiURXgEjoBxvSmJlVWpR\r
+ PkxKmoNFSZz3Fod9kJBAemJJanZqakFqEUxWhoNDSYL3jglQo2BRanpqRVpmTglCmomDE2Q4\r
+ D9DwNSA1vMUFibnFmekQ+VOMilLivB9BEgIgiYzSPLheWCy+YhQHekWYl8UUqIoHGMdw3a+A\r
+ BjMBDdZlDwQZXJKIkJJqYAxOcNBgYxObuPXitP17DmkuPO8Rf0zTvObC4aDHCf0CVTlb9G/M\r
+ 4UzL+HLtg7S6+e0tx0MDPFr19ll/45DIMGqYuEbs1o7ChxcjnqaZ/t7r8i/8bXJ9yfdrHpf6\r
+ pq3hOvvinegO8byzfs8kdk4qfVX8c+kV7jlhklYfZ71nNz0vufa+PZ9zWZASS3FGoqEWc1Fx\r
+ IgBWwaaPoAIAAA==\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, 07 Oct 2013 22:33:34 -0000\r
+\r
+I was hacking on undo support for notmuch-emacs and sort of\r
+accidentally wrote this instead. This series fixes a set of\r
+well-known races where tagging from search-mode unexpectedly affects\r
+messages that arrived after the search was performed (and hence the\r
+user doesn't know they're tagging them). We've attacked this a few\r
+times before, but have always run up against something that was\r
+missing. It turns out the pieces are finally all in place.\r
+\r
+The first five patches just clean various things up in preparation.\r
+Patches 6 and 7 add support for tagging large queries, which would\r
+otherwise become a problem when later patches start using explicit\r
+message ID-based queries for tagging. The remaining four patches\r
+actually fix the search tagging races using explicit message ID-based\r
+queries.\r
+\r
+It's a fairly long series, but none of the patches are very big.\r
+\r