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 74A9A4196F5 for ; Fri, 23 Apr 2010 12:15:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham 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 AmxBHtfnQN+O; Fri, 23 Apr 2010 12:15:39 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 667F5431FC1; Fri, 23 Apr 2010 12:15:39 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 31BED568DE4; Fri, 23 Apr 2010 11:47:04 -0700 (PDT) From: Carl Worth To: Dirk Hohndel , notmuch@notmuchmail.org Subject: Re: improve from-header guessing In-Reply-To: <1271451102-11336-1-git-send-email-hohndel@infradead.org> References: <1271451102-11336-1-git-send-email-hohndel@infradead.org> Date: Fri, 23 Apr 2010 11:47:04 -0700 Message-ID: <87pr1qf1lj.fsf@yoom.home.cworth.org> 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, 23 Apr 2010 19:15:40 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Fri, 16 Apr 2010 13:51:40 -0700, Dirk Hohndel wr= ote: > The following two patches should address most of the concerns raised=20 > to my previous series.=20 Allow me to raise new concerns then. ;-) > The first patch simply adds an interface to obtain a concatenation of > all instances of a specific header from an email. I was hoping to see the "special-case value of NULL" go away with this change. And I like that there's a new function to get the concatenated header, (I would prefer an unabbreviated name of get_concatenated_header than get_header_concat), but I don't like seeing all the existing callers of get_header updated to pass an extra 0. Instead, I'd prefer to see those calls unchanged, and a tiny new get_header that passes the 0 and then make the actual implementing function be static and named something like notmuch_message_file_get_header_internal. Both patches have some trailing whitespace. I see these easily wince I have the following in my ~/.gitconfig: [core] whitespace =3D trailing-space,space-before-tab I'm sure there's a way to make git refuse to let you commit changes with trailing whitespace, but I don't know offhand what it is. Finally, I'd like to see some tests for this feature. (But we do have the feature already without tests, so I won't strictly block on that). If you can fix up any of the above before I make another pass through ym queue, that would be great. Thanks, =2DCarl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFL0eso6JDdNq8qSWgRAseVAKCG3F2SC7JaIE8iM+Cy9B9yto57TQCeOHYx MQtYcLRhkdVeTN1eXSqvo20= =kXpC -----END PGP SIGNATURE----- --=-=-=--