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