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 18E17431FC0; Thu, 26 Nov 2009 13:42:18 -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 MwmxqqJTQTAC; Thu, 26 Nov 2009 13:42:17 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 40A56431FAE; Thu, 26 Nov 2009 13:42:17 -0800 (PST) From: Carl Worth To: Tassilo Horn , notmuch@notmuchmail.org In-Reply-To: <87tywlji10.fsf@thinkpad.tsdh.de> References: <87tywlji10.fsf@thinkpad.tsdh.de> Date: Thu, 26 Nov 2009 13:42:03 -0800 Message-ID: <87k4xdq7ys.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] [PATCH] Return unpropertized strings for filename and message-id 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: Thu, 26 Nov 2009 21:42:18 -0000 On Mon, 23 Nov 2009 17:57:31 +0100, Tassilo Horn wrote: > Hi! > > Here's my first patch. It changes that notmuch-show-get-filename and > notmuch-show-get-message-id return simple strings and not propertited > strings. Thanks, Tassilo! It's great to have a contribution from you in notmuch. I've pushed this out now. Two things with regards to your patch: 1. It's most convenient (for me) to apply emailed patches by sending directly to "git am". And "git am" just happens to want to see the complete commit message as the first thing in the mail message, (continuing the summary of the commit which comes from the subject). So to satisfy "git am", introductory and explanatory portions of the email, ("Hi!" and "Here's my first patch"), have to be relegated to past the "---" divider). I actually don't love this about "git am", since I think those introductory parts are essential to having cordial and friendly exchanges on the mailing list, (rather than just dryly shooting code back and forth). And it feels natural to have them first. One thing that might be interesting is to teach "git am" about an additional divider so that other text can came *before* the commit message. Alternately, one can put introductory text in one message, and the dry commit-only stuff as a reply. 2. Maybe I'll undermine my point above, but the commit here really *does* need a commit message beyond the first line. I've described this before as the one-line summary giving the "what" and the rest of the commit message giving the "why". And this is a perfect case of that. I can see exactly what the patch does, and it makes sense. But I tried to write the rest of the commit message and found I couldn't. In what cases did the presence of text properties cause a problem? I don't know, and that's what the commit message should have said. I'd said before that I would bounce patches with only a one-line summary. I guess I'm still too soft, but do expect me to be more strict on this in the future. :-) -Carl