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 246FD431FD0 for ; Wed, 28 Dec 2011 04:23:51 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.463 X-Spam-Level: X-Spam-Status: No, score=0.463 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, RDNS_DYNAMIC=0.363] 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 OZ6SfPCjy3cX for ; Wed, 28 Dec 2011 04:23:50 -0800 (PST) Received: from xhlj.maillard.im (cha51-3-88-164-105-66.fbx.proxad.net [88.164.105.66]) by olra.theworths.org (Postfix) with ESMTP id 80440431FB6 for ; Wed, 28 Dec 2011 04:23:50 -0800 (PST) Received: from xhlj.maillard.im (xhlj.maillard.im [127.0.0.1]) by xhlj.maillard.im (Postfix) with ESMTP id 9553F2C056; Wed, 28 Dec 2011 13:23:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=maillard.im; h=from:to :subject:in-reply-to:references:reply-to:date:message-id :mime-version:content-type; s=postfix; bh=/pH0exXBf2qSmZ5SzC8vDB xRJM8=; b=V7/m7rnSxAG9bcxp2DbzlvB5je9GZOuJ0EYh2hte22fCMlMywsdO5m l3y9MY/HLNqiW9baQh3+f9Otkh/UVW+G85gISOpf3oMxsaO9VobsvAax3IsvdAXa wsnXLPvYNUNVTHiyFvOZRCboeEM5U0s/EiTOt+YN0EnncGftdXclM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=maillard.im; h=from:to :subject:in-reply-to:references:reply-to:date:message-id :mime-version:content-type; q=dns; s=postfix; b=YIspDPo1ksfUTfjK O1iOPS5YwZeZN2wVamHSm0lZ5SKupIi42RP9eS7veOhq9xZ/4ml2LvLflIWZzme0 EzqUSS2HGOF//RrT3t1Mmyo+eSfcn8bV46MgaTOyNdVOZUwRwIpjRTCiOs85GvZw SNnK5MD+ZfWxOENkKK2NpBbWG4Q= Received: from maillard.im (cha51-3-88-164-105-66.fbx.proxad.net [88.164.105.66]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by xhlj.maillard.im (Postfix) with ESMTPSA; Wed, 28 Dec 2011 13:23:48 +0100 (CET) From: Xavier Maillard To: Jameson Graef Rollins , Notmuch Mail Subject: Re: [PATCH] Ignore encrypted parts when indexing. In-Reply-To: <1325005901-21374-1-git-send-email-jrollins@finestructure.net> References: <1325005901-21374-1-git-send-email-jrollins@finestructure.net> User-Agent: Notmuch/0.10.1 (http://notmuchmail.org) Emacs/23.2.1 (i486-slackware-linux-gnu) Date: Wed, 28 Dec 2011 13:40:42 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Xavier Maillard 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, 28 Dec 2011 12:23:51 -0000 Hi Jameson, On Tue, 27 Dec 2011 09:11:41 -0800, Jameson Graef Rollins wrote: > It appears to be an oversight that encrypted parts were indexed > previously. The terms generated from encrypted parts are meaningless > and do nothing but add bloat to the database. It is not worth > indexing the encrypted content, just as it's not worth indexing the > signatures in signed parts. +1 for this. But, > + if (GMIME_IS_MULTIPART_ENCRYPTED (multipart)) { > + /* Don't index encrypted parts. */ > + continue This needs a semicolon, doesn't it ? /Xavier