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 97F314196F3 for ; Sat, 24 Apr 2010 12:09:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.301 X-Spam-Level: X-Spam-Status: No, score=-2.301 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, RCVD_IN_DNSWL_MED=-2.3] 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 D3aGUKD0-0aT for ; Sat, 24 Apr 2010 12:09:57 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by olra.theworths.org (Postfix) with ESMTP id 976AC431FC1 for ; Sat, 24 Apr 2010 12:09:57 -0700 (PDT) Received: from localhost ([::1] helo=x200.gr8dns.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O5kjk-00035e-Uf; Sat, 24 Apr 2010 19:09:57 +0000 Received: by x200.gr8dns.org (Postfix, from userid 500) id 4A412CC5AC; Sat, 24 Apr 2010 12:09:56 -0700 (PDT) From: Dirk Hohndel To: Carl Worth , notmuch@notmuchmail.org Subject: Re: improve from-header guessing In-Reply-To: <87pr1qf1lj.fsf@yoom.home.cworth.org> References: <1271451102-11336-1-git-send-email-hohndel@infradead.org> <87pr1qf1lj.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.2-191-gdcd7da3 (http://notmuchmail.org) Emacs/23.1.1 (i386-redhat-linux-gnu) Date: Sat, 24 Apr 2010 12:09:56 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html 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: Sat, 24 Apr 2010 19:09:58 -0000 On Fri, 23 Apr 2010 11:47:04 -0700, Carl Worth wrote: > On Fri, 16 Apr 2010 13:51:40 -0700, Dirk Hohndel wrote: > > The following two patches should address most of the concerns raised > > to my previous series. > > Allow me to raise new concerns then. ;-) Any time > > 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. Turns out that the way I did this was broken anyway. So we can simply forget these patches and your concerns. I'm sure you'll raise new concerns on the new ("rearchitected") patches. > Both patches have some trailing whitespace. I see these easily wince I > have the following in my ~/.gitconfig: > > [core] > whitespace = trailing-space,space-before-tab I know. I'm trying to be better about checking whitespace pollution before submitting things. > 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). Hu? You even commited these already. Or am I reading email out of order again? /D