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