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 D791A431FD0 for ; Mon, 16 May 2011 02:00:13 -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 aNSOd5AjHnUk for ; Mon, 16 May 2011 02:00:13 -0700 (PDT) Received: from homiemail-a17.g.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by olra.theworths.org (Postfix) with ESMTP id 0381C431FB6 for ; Mon, 16 May 2011 02:00:12 -0700 (PDT) Received: from homiemail-a17.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTP id 30F197A8064; Mon, 16 May 2011 02:00:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:cc:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=OK/W1OhaHdA65eFe7i1fbCGQiDU YjqpvxnFn+bByLc7TqMQOb22C1mA6RncpZrYYdqOLHGWt2N4mQ7UWhs3OsaR1txb kdvZ1Cv4Pelfrw27x255s3jdQcXGgg0uCOflpsOAvQxKJdwwUApcByse+qufZA6Y ZKDFXMYvvlzmOtJI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=NO8pLUfPboVng64FqrzeOxgkaC8=; b=i OrHQW+GI1KBJjYML8icMKi9HWt0NxVEMjKMi21L65xL2T4tF1Xv8yvnnkTBn1gUc 0jcMWCG0ECkkuK50Ih017fc72NR9GDcHoOTtap2zhcLXF9qimDIZT+25G9d0zjX0 2MsHdsUT/qtabXre52et/qSZQb1oHfVFhRbYKRjqwk= Received: from spaetzbook.sspaeth.de (mtec-hg-docking-1-dhcp-253.ethz.ch [129.132.133.253]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fax@sspaeth.de) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPSA id 7F6937A8063; Mon, 16 May 2011 02:00:10 -0700 (PDT) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Mon, 16 May 2011 11:00:07 +0200 From: Sebastian Spaeth To: Austin Clements , Istvan Marko Subject: Re: storing From and Subject in xapian In-Reply-To: References: User-Agent: Notmuch/0.5-164-g8ce82ed (http://notmuchmail.org) Emacs/23.1.50.1 (x86_64-pc-linux-gnu) Date: Mon, 16 May 2011 10:59:55 +0200 Message-ID: <87ei3zaulw.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: notmuch@notmuchmail.org 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: Mon, 16 May 2011 09:00:14 -0000 --=-=-= On Sat, 14 May 2011 21:37:25 -0400, Austin Clements wrote: > I wonder if a better approach would be to use > notmuch_message_get_header everywhere, rather than introducing > _notmuch_message_get_header_value, and have it simply recognize > headers that can be retrieved directly from the database. Then > library callers could take advantage of this optimization and it could > be trivially extended to other headers in the future. +1, this is what the python bindings would prefer ;) Sebastian --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3Q54sACgkQVYX1jMgnoGIMLgCbBncomOc2MmWFyNovu1E8qZIA nboAniErjFg6yMI/r79iuLx1VNy2qbEl =g658 -----END PGP SIGNATURE----- --=-=-=--