[PATCH 0/4] Quoting HTML-only emails in replies redux
authorAdam Wolfe Gordon <awg+notmuch@xvx.ca>
Sun, 8 Jan 2012 07:52:38 +0000 (00:52 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:44 +0000 (09:41 -0800)
ba/468626c060fc83a71ce497140c4b42b723aa65 [new file with mode: 0644]

diff --git a/ba/468626c060fc83a71ce497140c4b42b723aa65 b/ba/468626c060fc83a71ce497140c4b42b723aa65
new file mode 100644 (file)
index 0000000..50ad065
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <awg@lagos.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 E920B40EF2A\r
+       for <notmuch@notmuchmail.org>; Sat,  7 Jan 2012 23:53:02 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 a+gStEwnADTj for <notmuch@notmuchmail.org>;\r
+       Sat,  7 Jan 2012 23:53:02 -0800 (PST)\r
+Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9])\r
+       by olra.theworths.org (Postfix) with ESMTP id 24F1540F1FD\r
+       for <notmuch@notmuchmail.org>; Sat,  7 Jan 2012 23:53:02 -0800 (PST)\r
+Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd7ml3no-ssvc.prod.shaw.ca)\r
+       ([10.0.144.222])\r
+       by pd7mo1no-svcs.prod.shaw.ca with ESMTP; 08 Jan 2012 00:53:01 -0700\r
+X-Cloudmark-SP-Filtered: true\r
+X-Cloudmark-SP-Result: v=1.1 cv=aDUJ/pRHNXkohnfhaDKKve0FfU8uPxX8npdo6G126bI=\r
+       c=1 sm=1\r
+       a=XPVQW2CsNnkA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
+       a=Lranr8subozKhxeeFO8A:9 a=E_SfqJpcKf9Km3Pmb5wA:7 a=odvB31Xb1hMA:10\r
+       a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
+Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
+       by pd7ml3no-dmz.prod.shaw.ca with ESMTP; 08 Jan 2012 00:53:01 -0700\r
+Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
+       id 1AB7F8004202; Sun,  8 Jan 2012 00:53:01 -0700 (MST)\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: notmuch@notmuchmail.org,\r
+       awg@xvx.ca\r
+Subject: [PATCH 0/4] Quoting HTML-only emails in replies redux\r
+Date: Sun,  8 Jan 2012 00:52:38 -0700\r
+Message-Id: <1326009162-19524-1-git-send-email-awg+notmuch@xvx.ca>\r
+X-Mailer: git-send-email 1.7.5.4\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: Sun, 08 Jan 2012 07:53:03 -0000\r
+\r
+From: Adam Wolfe Gordon <awg@xvx.ca>\r
+\r
+Hi everyone,\r
+\r
+This is a rework of my previous patch series adding support for replying to HTML\r
+email in the emacs interface\r
+(id:1322671241-23438-1-git-send-email-awg+notmuch@xvx.ca).\r
+\r
+It was suggested on IRC that a more general solution would be to add a JSON\r
+format to notmuch reply, and then have the emacs client parse the JSON to create\r
+an appropriate reply. This patchset implements that.\r
+\r
+The previous patches had an issue with emails that contained both HTML and\r
+plaintext parts, where all the parts would end up quoted. This version avoids\r
+that problem, since the emacs interface can easily check whether there are\r
+plaintext parts and avoid quoting HTML parts if there are.\r
+\r
+There should probably be some customize variables for this in emacs, to control\r
+(for example) whether to quote HTML parts and whether to prefer HTML or\r
+plaintext parts for quoting. Any suggestions for what should be customizable\r
+would be appreciated.\r
+\r
+I know Jani is currently working on some reply-related patches (the reply-all\r
+vs. reply-one set). These changes probably won't merge cleanly with those\r
+changes, so some care might be required. If his changes are pushed first, I'll\r
+happily rebase and send a new set.\r
+\r
+Thanks in advance for any reviews.\r
+\r
+Adam Wolfe Gordon (4):\r
+  test: Add broken test for the new JSON reply format.\r
+  reply: Add a JSON reply format.\r
+  man: Update notmuch-reply man page for JSON format.\r
+  emacs: Use the new JSON reply format.\r
+\r
+ emacs/notmuch-mua.el     |   62 +++++++++---\r
+ man/man1/notmuch-reply.1 |    5 +\r
+ notmuch-reply.c          |  269 +++++++++++++++++++++++++++++++++++++++-------\r
+ test/emacs               |    1 +\r
+ test/multipart           |    7 ++\r
+ 5 files changed, 292 insertions(+), 52 deletions(-)\r
+\r
+-- \r
+1.7.5.4\r
+\r