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 B2998421181 for ; Tue, 17 Jan 2012 08:18:25 -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=[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 KciTxvECf5el for ; Tue, 17 Jan 2012 08:18:25 -0800 (PST) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id DE791429E3B for ; Tue, 17 Jan 2012 08:18:24 -0800 (PST) Received: by bkty12 with SMTP id y12so707577bkt.26 for ; Tue, 17 Jan 2012 08:18:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.205.120.148 with SMTP id fy20mr6950189bkc.125.1326817101973; Tue, 17 Jan 2012 08:18:21 -0800 (PST) Sender: awg@xvx.ca Received: by 10.205.33.73 with HTTP; Tue, 17 Jan 2012 08:18:21 -0800 (PST) X-Originating-IP: [208.77.198.202] In-Reply-To: References: <1326737603-21166-1-git-send-email-awg+notmuch@xvx.ca> <1326737603-21166-5-git-send-email-awg+notmuch@xvx.ca> Date: Tue, 17 Jan 2012 09:18:21 -0700 X-Google-Sender-Auth: MzyqVCB__iSQtPOnhdUyF1ZlOCg Message-ID: Subject: Re: [PATCH v2 4/4] emacs: Use the new JSON reply format. From: Adam Wolfe Gordon To: David Edmondson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: notmuch@notmuchmail.org 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: Tue, 17 Jan 2012 16:18:25 -0000 Hi David, Thanks for the review. A couple of comments inline: On Tue, Jan 17, 2012 at 02:04, David Edmondson wrote: >> + =A0 =A0(insert "\n") >> + =A0 =A0(set-buffer-modified-p nil))) > > Is this newline always required? Is it the cause of the spurious blank > line down below? This is the cause of the spurious blank line, but without it the tests complain about missing a blank line at the end of the file. There may be a better way to deal with this - I'll experiment. >> =A0(defun notmuch-mua-reply (query-string &optional sender reply-all) >> ... >> + =A0 =A0 =A0(insert (format "On %s, %s wrote:\n" >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (cdr (assq 'date original-headers)= ) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (cdr (assq 'from original-headers)= ))) > > I wonder whether emacs should be regenerating this or not. I'm okay with > it, but previous discussion was that it should remain the responsibility > of the CLI. I like this being generated in the MUA because then it can be customized easily (e.g. in my later patch). Of course, it would also be possible to add this as a config option for the CLI and generate it there, but it feels to me like if there's a line between notmuch and the MUA, this belongs on the MUA side, especially in MUAs that are formatting the reply themselves anyway. I'm happy to hear more discussion on this, and will implement whatever seems best. I don't actually use the customization myself, it just strikes me as a useful feature.