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 C108F431FAF for ; Thu, 19 Jan 2012 20:46:50 -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 fu4yS8lgY1LP for ; Thu, 19 Jan 2012 20:46:50 -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 DE025431FAE for ; Thu, 19 Jan 2012 20:46:49 -0800 (PST) Received: by bkbzu17 with SMTP id zu17so154689bkb.26 for ; Thu, 19 Jan 2012 20:46:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.205.131.142 with SMTP id hq14mr7657296bkc.89.1327034806913; Thu, 19 Jan 2012 20:46:46 -0800 (PST) Sender: awg@xvx.ca Received: by 10.204.49.75 with HTTP; Thu, 19 Jan 2012 20:46:46 -0800 (PST) X-Originating-IP: [96.52.216.56] In-Reply-To: References: <1326995217-27423-1-git-send-email-awg+notmuch@xvx.ca> <1326995217-27423-6-git-send-email-awg+notmuch@xvx.ca> Date: Thu, 19 Jan 2012 21:46:46 -0700 X-Google-Sender-Auth: 7sumT2DAuv3zly9bD9TNE931GvA Message-ID: Subject: Re: [PATCH v3 5/5] emacs: Use message-citation-line-format in reply From: Adam Wolfe Gordon To: Aaron Ecay Content-Type: text/plain; charset=windows-1252 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: Fri, 20 Jan 2012 04:46:50 -0000 On Thu, Jan 19, 2012 at 11:45, Aaron Ecay wrote: > Shouldn=92t this just use message-insert-formatted-citation-line? Yes, good idea. I just tried this and it almost works. The only issue is that the default message-mode-citation-line-format has a newline at the end, and this function inserts an *additional* newline, so we end up with a blank line before the beginning of the quoted text. This is fixable by the user, of course, but it means the default out-of-the-box setup will create funny-looking replies, which is probably bad. Thoughts? > Another approach you might take with this patch series is to look at > the message-cite-original function (which I just discovered as I was > plumbing around in message.el looking for the function to format the > citation line). =A0I think that what one does to use this fn is to put > the original message text into the reply buffer (unquoted), set point > and mark to encompass it, then call the fn. =A0It automatically handles > inserting the quotes, and has some customization options (stripping > signatures from replies, customizable quote character instead of =93>=94, > ...). > > The message-cite-original function also adds escape characters to the > cookies that message-mode uses to indicate sign/encrypt/attach > directives. =A0I think notmuch exposes files on the user=92s computer to > others, if a user can be tricked into replying to a message with an > attachment cookie and not stripping the cookie from the reply text. =A0So > to mitigate this, whatever reply mechanism winds up being used should > call mml-quote-region on the reply text (as message-cite-original does). I've also tried using message-cite-original to create the reply body, and it also almost works. The issue, again, is one of defaults. In addition to the blank line I mentioned above, the default message-citation-line-function inserts the "plain" citation line "Foo writes:" instead of the formatted one. This is a big change from the current notmuch default. If everyone's OK with this and willing to customize it themselves, then I'm happy to go with this solution, but I'm pretty reluctant to change the default in such a significant way.