--- /dev/null
+Return-Path: <jani@nikula.org>\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 18E27431FBC\r
+ for <notmuch@notmuchmail.org>; Mon, 22 Sep 2014 02:54:16 -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 iJRQ4f0nIlGH for <notmuch@notmuchmail.org>;\r
+ Mon, 22 Sep 2014 02:54:08 -0700 (PDT)\r
+Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com\r
+ [74.125.82.47]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ 09DAB431FB6 for <notmuch@notmuchmail.org>; Mon, 22 Sep 2014 02:54:07 -0700\r
+ (PDT)\r
+Received: by mail-wg0-f47.google.com with SMTP id y10so2629823wgg.6\r
+ for <notmuch@notmuchmail.org>; Mon, 22 Sep 2014 02:54:06 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+ bh=D5lQOGVFo/Jm32yeMbhYst8UHSzSk09aI6FbAAKe0VY=;\r
+ b=MQjNKvmszVC93liRi8qihtYMg1S8d1lMEzDvjMYzTvXYwIynMVCTj3tWQC9V9GkOAJ\r
+ MofVyJsVarOTgOp8FKoVXwpiw+/HFFLDvQIACgIGuOP7dKB8uNTV3Fd9ZQe/sGHwJs8s\r
+ w03gHUZoZ/08FpVZelcm41vcMZIV6alyJlxLSMODdg0BzO2ZGiuRPNAp9UmCxI39MTD2\r
+ DlX+cerONZ5WE9OURrLyM9LFsgm3EQUOWBSPXTQCgCa6shkRYmbJe/oq0HVV/9OzBQME\r
+ vVF+Fo6syXVssYsRgiBCtgAhxL/IeW69KJyhGI6G0Dxxqc1a3kQKEGkCH61/oUEzl7Wp\r
+ +nww==\r
+X-Gm-Message-State:\r
+ ALoCoQlqNNsKOLVpXSLyIBzM3ebIW8OfhTdJlCyy8zveVDinNTwglCWiONU6v8fhIXjUsApmRq0j\r
+X-Received: by 10.180.206.230 with SMTP id lr6mr14434191wic.82.1411379646476; \r
+ Mon, 22 Sep 2014 02:54:06 -0700 (PDT)\r
+Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
+ by mx.google.com with ESMTPSA id\r
+ om1sm11692648wjc.42.2014.09.22.02.54.05 for <multiple recipients>\r
+ (version=TLSv1.1 cipher=RC4-SHA bits=128/128);\r
+ Mon, 22 Sep 2014 02:54:05 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 00/11] notmuch insert updates\r
+Date: Mon, 22 Sep 2014 11:54:20 +0200\r
+Message-Id: <cover.1411379395.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.2.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: Mon, 22 Sep 2014 09:54:16 -0000\r
+\r
+This series refactors and cleans up insert, improves error handling and\r
+reporting, and adds post-insert hook. I intend to add documentation and\r
+more tests, but the code is ready for review. Also, at least some of the\r
+cleanups and fixes in the beginning of the series could go in without\r
+additional tests or documentation.\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+Jani Nikula (11):\r
+ lib: actually return failures from\r
+ notmuch_message_tags_to_maildir_flags\r
+ cli/insert: rename check_folder_name to is_valid_folder_name\r
+ cli/insert: move add_file_to_database to a better place\r
+ cli/insert: rename file copy function\r
+ cli/insert: clean up sync_dir\r
+ cli/insert: use a single recursive mkdir function\r
+ cli/insert: abstract temporary filename generation\r
+ cli/insert: rehash file writing functions\r
+ cli/insert: add fail path to add_file_to_database\r
+ cli/insert: require succesful message indexing for success status\r
+ cli/insert: add post-insert hook\r
+\r
+ lib/message.cc | 2 +-\r
+ notmuch-insert.c | 462 +++++++++++++++++++++++++++++----------------------\r
+ test/T070-insert.sh | 2 +-\r
+ 3 files changed, 262 insertions(+), 204 deletions(-)\r
+\r
+-- \r
+1.7.2.5\r
+\r