Re: [PATCH v5.2 7/7] emacs: Use the new JSON reply format and message-cite-original
authorAdam Wolfe Gordon <awg+notmuch@xvx.ca>
Tue, 21 Feb 2012 16:49:37 +0000 (09:49 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:44:47 +0000 (09:44 -0800)
96/88f8cdad80705a5a29047c498c2ded18c6aca9 [new file with mode: 0644]

diff --git a/96/88f8cdad80705a5a29047c498c2ded18c6aca9 b/96/88f8cdad80705a5a29047c498c2ded18c6aca9
new file mode 100644 (file)
index 0000000..c9aac26
--- /dev/null
@@ -0,0 +1,115 @@
+Return-Path: <awg@xvx.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4EC95431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 08:49:44 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id yzekFmOyaLJc for <notmuch@notmuchmail.org>;\r
+       Tue, 21 Feb 2012 08:49:40 -0800 (PST)\r
+Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
+       [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 2CAA5431FAE\r
+       for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 08:49:40 -0800 (PST)\r
+Received: by lahd3 with SMTP id d3so8197774lah.26\r
+       for <notmuch@notmuchmail.org>; Tue, 21 Feb 2012 08:49:37 -0800 (PST)\r
+Received-SPF: pass (google.com: domain of awg@xvx.ca designates 10.152.132.104\r
+       as permitted sender) client-ip=10.152.132.104; \r
+Authentication-Results: mr.google.com;\r
+       spf=pass (google.com: domain of awg@xvx.ca designates\r
+       10.152.132.104 as permitted sender) smtp.mail=awg@xvx.ca\r
+Received: from mr.google.com ([10.152.132.104])\r
+       by 10.152.132.104 with SMTP id ot8mr19916214lab.17.1329842977288\r
+       (num_hops = 1); Tue, 21 Feb 2012 08:49:37 -0800 (PST)\r
+MIME-Version: 1.0\r
+Received: by 10.152.132.104 with SMTP id ot8mr16667867lab.17.1329842977230;\r
+       Tue, 21 Feb 2012 08:49:37 -0800 (PST)\r
+Sender: awg@xvx.ca\r
+Received: by 10.112.114.103 with HTTP; Tue, 21 Feb 2012 08:49:37 -0800 (PST)\r
+X-Originating-IP: [128.221.197.57]\r
+In-Reply-To: <20120221055920.GA30513@mit.edu>\r
+References: <1329361957-28493-1-git-send-email-awg+notmuch@xvx.ca>\r
+       <1329361957-28493-8-git-send-email-awg+notmuch@xvx.ca>\r
+       <20120221055920.GA30513@mit.edu>\r
+Date: Tue, 21 Feb 2012 09:49:37 -0700\r
+X-Google-Sender-Auth: ERr9P2lj7sKIQgkocaxdaqzQvxE\r
+Message-ID:\r
+ <CAMoJFUvo6CZjeNSqeoR_HViKgxz-WS9Tx8qfOgaVgYbmmBWHiw@mail.gmail.com>\r
+Subject: Re: [PATCH v5.2 7/7] emacs: Use the new JSON reply format and\r
+       message-cite-original\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: Austin Clements <amdragon@mit.edu>\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+Content-Transfer-Encoding: quoted-printable\r
+X-Gm-Message-State:\r
+ ALoCoQl5Ip+NRI6RQ/VODut1+trih2+UdbG+/lW7acaaHCJAbqy+VxjEB0+vXt/GE4uI/YXFpRzL\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 21 Feb 2012 16:49:44 -0000\r
+\r
+On Mon, Feb 20, 2012 at 22:59, Austin Clements <amdragon@mit.edu> wrote:\r
+> I've been thinking about this more. =A0message-mode's default citation\r
+> line is really unfortunate and quite possibly insane ("writes" isn't\r
+> even the right tense and what's up with that extra line break?). =A0The\r
+> option to change this is also well hidden (as an experiment, I tried\r
+> navigating to it through customize and couldn't figure out where it\r
+> was, even though I knew what I was looking for). =A0In general, I'm a\r
+> fan of inheriting as many options from Emacs as possible, but people\r
+> *are* going to ask how to change this and the default setting *is*\r
+> going to turn people off of notmuch ("What mail client do you use that\r
+> generates those quirky citation lines?" =A0"I use notmuch!" =A0"Is that,\r
+> like, from the 80's?").\r
+\r
+Agreed. It's a really unfortunate default.\r
+\r
+> So, what about adding a notmuch customize option for selecting the\r
+> citation line format? =A0It could offer a few const choices, including a\r
+> default, sane format, plus the option to enter your own or to fall\r
+> back to whatever message-mode is configured to do. =A0If we do this,\r
+> it's probably best done in a follow-up series, but this seemed like an\r
+> appropriate place to bring it up.\r
+\r
+I think there are two options, which have been discussed a bit before [1]:\r
+\r
+1) Wrap the citation format with a notmuch customization variable,\r
+notmuch-citation-line-format or somesuch. Then set the\r
+message-citation-line-format before calling message-cite-original.\r
+\r
+2) Have notmuch load a user config file (~/.notmuch.el or something)\r
+on startup, and provide a default file that sets nice defaults for\r
+things like message-citation-line-format. The default file could even\r
+be constructed on first run, such that if the user has already\r
+customized some things (like message-citation-line-format) we can keep\r
+their settings.\r
+\r
+Option 2 is obviously more work, but I think it's the right way to go,\r
+at least in the long run. In addition to giving a place to provide\r
+nice defaults for non-notmuch variables, it gives the user a nice\r
+place to specify notmuch-specific config. For example, I use\r
+completely separate init files for notmuch and other emacs usage, and\r
+having a notmuch config file would let me get away from this slightly\r
+kludgey setup.\r
+\r
+In either case, this can probably come as a separate patch series, but\r
+it is good to start discussing it here.\r
+\r
+[1] id:"m2mx9i3onw.fsf@wal122.wireless-pennnet.upenn.edu"\r