--- /dev/null
+Return-Path: <awg@lagos.xvx.ca>\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 8E1FE431FCB\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Jul 2013 17:55:32 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 JF36e9XmlJE1 for <notmuch@notmuchmail.org>;\r
+ Sat, 13 Jul 2013 17:55:25 -0700 (PDT)\r
+Received: from smtp-out-01.shaw.ca (smtp-out-01.shaw.ca [64.59.136.137])\r
+ by olra.theworths.org (Postfix) with ESMTP id F131B431FBF\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Jul 2013 17:55:24 -0700 (PDT)\r
+X-Cloudmark-SP-Filtered: true\r
+X-Cloudmark-SP-Result: v=1.1 cv=GLqYwptGXHjY6tPk5kWRtHXJM/YfZPTWiIs1znw4zms=\r
+ c=1 sm=1\r
+ a=A16mN0G_02cA:10 a=BLceEmwcHowA:10 a=gumk1giGF0obp6xRQyl7Yg==:17\r
+ a=sDWRSQzO3c7R0vj9Q-8A:9 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
+Received: from unknown (HELO lagos.xvx.ca) ([68.150.39.45])\r
+ by smtp-out-01.shaw.ca with ESMTP; 13 Jul 2013 18:45:54 -0600\r
+Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
+ id 0EF058009323; Sat, 13 Jul 2013 18:45:54 -0600 (MDT)\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/3] Introduce the add command\r
+Date: Sat, 13 Jul 2013 18:45:43 -0600\r
+Message-Id: <1373762746-22308-1-git-send-email-awg+notmuch@xvx.ca>\r
+X-Mailer: git-send-email 1.7.9.5\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: Sun, 14 Jul 2013 00:55:32 -0000\r
+\r
+Hi everyone,\r
+\r
+The recent introduction of insert inspired me to finally add a feature I've\r
+been wanting: a command to index a specific file in the maildir. My usecase\r
+for this is that I have an inotify-based script that watches for new mail\r
+and calls notmuch new when new mail shows up. Running notmuch new in this\r
+situation is overkill, since I know exactly what's changed. A faster command\r
+that just adds a single file reduces contention on the database lock.\r
+\r
+This series introduces a new command, "notmuch add", which indexes a file\r
+that already exists in the maildir. It is implemented in notmuch-insert.c\r
+because it uses the basic infrastructure introduced for the insert command.\r
+\r
+Missing man page for now - wanted to get the code out first for review.\r
+\r
+-- Adam\r
+\r
+Adam Wolfe Gordon (3):\r
+ cli: Return an error code from add_message_to_database\r
+ cli: Introduce the add command\r
+ test: Add simple tests for the add command\r
+\r
+ notmuch-client.h | 3 +++\r
+ notmuch-insert.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++---\r
+ notmuch.c | 2 ++\r
+ test/insert | 35 +++++++++++++++++++++++++++++++++\r
+ 4 files changed, 94 insertions(+), 3 deletions(-)\r
+\r
+-- \r
+1.7.9.5\r
+\r