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 3770F431FD0 for ; Fri, 30 Sep 2011 02:14:37 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.09 X-Spam-Level: X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] 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 XyG7bD-1CBhX for ; Fri, 30 Sep 2011 02:14:36 -0700 (PDT) Received: from homiemail-a23.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by olra.theworths.org (Postfix) with ESMTP id B5241431FB6 for ; Fri, 30 Sep 2011 02:14:36 -0700 (PDT) Received: from homiemail-a23.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTP id 2FF964B008F; Fri, 30 Sep 2011 02:14:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=IofE7VngJ27TbOQyzQ6GBd5N3+E Gzilr45nCfyTPfjgiZdV9on0iUiAb5MWxFR2yQ/yr2V7w3brMEZMB51hvG5P1zT8 UINVFOB4Q2l/VofkNo66i78zeLmneoGHGDGaKH5JRAIDYXCJ0mOj4M9SZ1ZZqE8b 4Dh/D0Py7DQNiFAU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=G9+HhDeiaHXI92Phm1yy2LeU9Pc=; b=c qPTL2etWqYGyOMyHZ086KPLE7nEtcdCNTnbHDw86IcEHjocs+k1XZ8hI78P7RNBZ F/PsBl7DdO4VJuZ5AXVbBWyt07SJ7LlI+lvLrfjQiTk9/zSDbLdRaLnoIk69aXFN DKTHiAeGe1afhNQKrqPwBYGsZOBWigEw3Nxj8gIjIM= Received: from spaetzbook.sspaeth.de (unknown [84.55.203.213]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fax@sspaeth.de) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTPSA id 65B9E4B0086; Fri, 30 Sep 2011 02:14:34 -0700 (PDT) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Fri, 30 Sep 2011 11:14:32 +0200 From: Sebastian Spaeth To: Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org Subject: Re: [PATCH 1/9] python: add a .gitignore file and refine the toplevel one In-Reply-To: References: <1316999137-28257-1-git-send-email-4winter@informatik.uni-hamburg.de> <871uuzlrkt.fsf@SSpaeth.de> User-Agent: Notmuch/0.7-19-gee4579a (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Fri, 30 Sep 2011 11:14:31 +0200 Message-ID: <87hb3u4cjs.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Fri, 30 Sep 2011 09:14:37 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Fri, 30 Sep 2011 02:41:02 +0200, Justus Winter <4winter@informatik.uni-h= amburg.de> wrote: Non-text part: multipart/mixed > Quoting Sebastian Spaeth (2011-09-29 09:45:38) > >Also, not all "status" are an error, e.g. DuplicateMessageId denotes > >success rather than failure, it just communicates a status. >=20 > I just stumbled upon the following comment in notmuch.h: >=20 > /* Status codes used for the return values of most functions. > * > * A zero value (NOTMUCH_STATUS_SUCCESS) indicates that the function > * completed without error. Any other value indicates an error as > * follows: > [...] That sounds like notmuch.h doesn't know what it wants :-). The "error" can occur on add_message or remove_message and notmuch.h has to say: on add_message: * If 'message' is not NULL, then, on successful return * (NOTMUCH_STATUS_SUCCESS or NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID) '*messag= e' * will be initialized to a message object that can be used for things * such as adding tags to the just-added message. The user should call * notmuch_message_destroy when done with the message. ... On any failure * '*message' will be set to NULL. So DUPLICATE_MESSAGE_ID is definitely a successful return here, filling in = the Message object. on remove_message: * NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: This filename was removed but * the message persists in the database with at least one other * filename. Similarly, the operation succeeded, it's just that there are other messages with that ID still around. One could argue whether this is an error or not. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6FiHgACgkQVYX1jMgnoGIBVgCgkPdZwgqKX6ailXsnpNjR5vog peEAnAgiVUHZ6DxdkAWpoAMOKaYnnpx1 =jflB -----END PGP SIGNATURE----- --=-=-=--