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 0463F431FD0 for ; Mon, 9 Jan 2012 15:26:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 oFCagKN+ikAG for ; Mon, 9 Jan 2012 15:26:20 -0800 (PST) Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 78D10431FB6 for ; Mon, 9 Jan 2012 15:26:20 -0800 (PST) Received: by qadb15 with SMTP id b15so3095936qad.5 for ; Mon, 09 Jan 2012 15:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nickurak.ca; s=google-dkim; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=PTnZwdOs20YHoPYLY4UmTThe0BZrwKjQnMq5+qdgNuM=; b=P8Qr29oiGs7W+s51RZUB9YR2e2QmGWI80R8os3TUi1FVCOfTNSCh/A1tMxmaw8+joH rwpZVseAXL34E7hGObLRsn9slkrcF4ODQEKqangawlF4sttIQcphW6mb0KLiHQmlAGP2 4UH1bloy4rM2XnM0ntNVanfhUGP9oIcKazmsg= MIME-Version: 1.0 Received: by 10.224.181.10 with SMTP id bw10mr21850924qab.59.1326151578673; Mon, 09 Jan 2012 15:26:18 -0800 (PST) Sender: jeremy@nickurak.ca Received: by 10.229.40.149 with HTTP; Mon, 9 Jan 2012 15:26:18 -0800 (PST) X-Originating-IP: [128.221.197.58] In-Reply-To: <20120103184546.GB27894@fernseed.info> References: <20120103123938.GA15106@x2.net.home> <20120103184546.GB27894@fernseed.info> Date: Mon, 9 Jan 2012 16:26:18 -0700 X-Google-Sender-Auth: Kn41xbc9ukG7iE8VfEBpM-biZpM Message-ID: Subject: Re: [ANNOUNCE] mutt with notmuch support From: Jeremy Nickurak To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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, 09 Jan 2012 23:26:21 -0000 FWIW, here's the patch I ended up using to play with this: diff --git a/mutt_notmuch.c b/mutt_notmuch.c index 2f21407..a07b1ba 100644 --- a/mutt_notmuch.c +++ b/mutt_notmuch.c @@ -636,11 +636,15 @@ char *nm_uri_from_query(CONTEXT *ctx, char *buf, size_t bufsz) =C2=A0static notmuch_message_t *get_nm_message(notmuch_database_t *db, HEAD= ER *hdr) =C2=A0{ =C2=A0 =C2=A0 =C2=A0 =C2=A0 notmuch_message_t *msg; + =C2=A0 =C2=A0 =C2=A0 notmuch_status_t r; + =C2=A0 =C2=A0 =C2=A0 =C2=A0 char *id =3D nm_header_get_id(hdr); =C2=A0 =C2=A0 =C2=A0 =C2=A0 dprint(2, (debugfile, "nm: find message (%s)\n"= , id)); - =C2=A0 =C2=A0 =C2=A0 msg =3D id && db ? notmuch_database_find_message(db,= id) : NULL; + =C2=A0 =C2=A0 =C2=A0 if (id && db) { + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 r =3D notmuch_database_f= ind_message(db, id, &msg); + =C2=A0 =C2=A0 =C2=A0 } =C2=A0 =C2=A0 =C2=A0 =C2=A0 FREE(&id); =C2=A0 =C2=A0 =C2=A0 =C2=A0 return msg;