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 E5773431FBC for ; Mon, 23 Nov 2009 12:29:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 HKgPkIjfyyHq for ; Mon, 23 Nov 2009 12:29:49 -0800 (PST) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 0C68E431FAE for ; Mon, 23 Nov 2009 12:29:49 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 560F07600E3 for ; Mon, 23 Nov 2009 12:29:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ye71WFTl+cIh for ; Mon, 23 Nov 2009 12:29:45 -0800 (PST) Received: by keithp.com (Postfix, from userid 1033) id A4F4EB84011; Mon, 23 Nov 2009 12:29:45 -0800 (PST) Received: from keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 96A867600E3 for ; Mon, 23 Nov 2009 12:29:45 -0800 (PST) From: Keith Packard To: notmuch@notmuchmail.org Date: Mon, 23 Nov 2009 12:29:44 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: [notmuch] _notmuch_message_create_for_message_id makes extra call to notmuch_database_find_message X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 23 Nov 2009 20:29:50 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Looking at _notmuch_message_create_for_message_id, the first thing it does is call notmuch_database_find_message, but the returned 'message' is never used. I haven't tried, but I suspect this call could just be removed. =2D-=20 keith.packard@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLCvC5Qp8BWwlsTdMRApuiAJ9iYoPkvdECqxzWi3BylqZCqsoRVwCfT642 n1VZwFlYQANl1wN2zFaMirk= =uPnv -----END PGP SIGNATURE----- --=-=-=--