[PATCH v2 00/10] add insert --must-index option
authorPeter Wang <novalazy@gmail.com>
Wed, 16 Apr 2014 12:59:15 +0000 (22:59 +1000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:01:38 +0000 (10:01 -0800)
c1/6c176af63ac879d9f53dc8f0caa058bebbbdb9 [new file with mode: 0644]

diff --git a/c1/6c176af63ac879d9f53dc8f0caa058bebbbdb9 b/c1/6c176af63ac879d9f53dc8f0caa058bebbbdb9
new file mode 100644 (file)
index 0000000..3594a36
--- /dev/null
@@ -0,0 +1,101 @@
+Return-Path: <novalazy@gmail.com>\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 1FD13431FC0\r
+       for <notmuch@notmuchmail.org>; Wed, 16 Apr 2014 05:59:49 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.7\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.7 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, FREEMAIL_REPLY=2.499, RCVD_IN_DNSWL_LOW=-0.7]\r
+       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 1ujN0eRBopYI for <notmuch@notmuchmail.org>;\r
+       Wed, 16 Apr 2014 05:59:41 -0700 (PDT)\r
+Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com\r
+       [209.85.160.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 3296E431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 16 Apr 2014 05:59:41 -0700 (PDT)\r
+Received: by mail-pb0-f54.google.com with SMTP id ma3so10887682pbc.27\r
+       for <notmuch@notmuchmail.org>; Wed, 16 Apr 2014 05:59:39 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id;\r
+       bh=fLgNHG9N9fCP3GXILJT7/RWEx45RbS77Rrds5JDxQqM=;\r
+       b=Sdm9BGBZLeHw4pbpZRMF9hP0FcrJkiN/ee0+JEluvG/VvM6ydSn+ZZIIryqEK01wkq\r
+       zdiHVre+dPF4bnjB4v9hZ11oo/gwTyZiyDbJWe05h9pZvpEyG76l+HcsmHnJUTN2w4h2\r
+       7E5b+cwGHvqeDItI/bb7imJt8oWmg1uAgQSIyszIa5z9gw4WrQhsQdj+IUtR/00hN3ZY\r
+       hWIWW37ubUbR9QR3rJ/f9u7zTqP5Fq0rZiVfsuGfGcxP9BVGp5vVIQlAryV3eZDdh4fN\r
+       +Lb5wzlMz0ZejDv5nKvOPfLgqRbwv1g1uomS8mAPYoglYlBfxIx+hdbR2xU3EcBLpnV/\r
+       r/9g==\r
+X-Received: by 10.66.160.34 with SMTP id xh2mr8262473pab.109.1397653179342;\r
+       Wed, 16 Apr 2014 05:59:39 -0700 (PDT)\r
+Received: from localhost (215.42.233.220.static.exetel.com.au.\r
+       [220.233.42.215]) by mx.google.com with ESMTPSA id\r
+       ba5sm46901250pbc.61.2014.04.16.05.59.37 for <multiple recipients>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Wed, 16 Apr 2014 05:59:38 -0700 (PDT)\r
+From: Peter Wang <novalazy@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 00/10] add insert --must-index option\r
+Date: Wed, 16 Apr 2014 22:59:15 +1000\r
+Message-Id: <1397653165-15620-1-git-send-email-novalazy@gmail.com>\r
+X-Mailer: git-send-email 1.8.4\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: Wed, 16 Apr 2014 12:59:49 -0000\r
+\r
+Follow up to id:1374365254-13227-1-git-send-email-novalazy@gmail.com\r
+The main changes are to take into account failures during\r
+tagging and flushing of the database.\r
+\r
+I took Jani's patch id:1390152046-6509-1-git-send-email-jani@nikula.org\r
+without modification.\r
+\r
+The soname bump is included in case it is required.\r
+\r
+The python/go/ruby changes are untested.\r
+\r
+\r
+Jani Nikula (1):\r
+  lib: add return status to database close and destroy\r
+\r
+Peter Wang (9):\r
+  lib: bump soname\r
+  python: handle return status of database close and destroy\r
+  go: add return status to database close method\r
+  ruby: handle return status of database close\r
+  cli: refactor insert\r
+  cli: indicate insert failure mode in exit status\r
+  cli: add insert --must-index option\r
+  test: test insert --must-index\r
+  man: update insert documentation\r
+\r
+ bindings/go/src/notmuch/notmuch.go  |   4 +-\r
+ bindings/python/notmuch/database.py |  12 ++--\r
+ bindings/ruby/database.c            |   4 +-\r
+ doc/man1/notmuch-insert.rst         |  24 +++++--\r
+ lib/Makefile.local                  |   2 +-\r
+ lib/database.cc                     |  30 ++++++--\r
+ lib/notmuch.h                       |  15 +++-\r
+ notmuch-insert.c                    | 134 +++++++++++++++++++++---------------\r
+ test/T070-insert.sh                 |  32 +++++++--\r
+ 9 files changed, 176 insertions(+), 81 deletions(-)\r
+\r
+-- \r
+1.8.4\r
+\r