[PATCH 0/2] Replying to HTML-only emails
[notmuch-archives.git] / e9 / 5efa2e4cccef175a69e26658cd406ef8edfbc0
diff --git a/e9/5efa2e4cccef175a69e26658cd406ef8edfbc0 b/e9/5efa2e4cccef175a69e26658cd406ef8edfbc0
new file mode 100644 (file)
index 0000000..e8d074c
--- /dev/null
@@ -0,0 +1,77 @@
+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 D5092431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 21 Apr 2012 17:55:07 -0700 (PDT)\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 su7qVB2N9tjg for <notmuch@notmuchmail.org>;\r
+       Sat, 21 Apr 2012 17:55:07 -0700 (PDT)\r
+Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9])\r
+       by olra.theworths.org (Postfix) with ESMTP id A665D431FBC\r
+       for <notmuch@notmuchmail.org>; Sat, 21 Apr 2012 17:54:56 -0700 (PDT)\r
+Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd7ml1no-ssvc.prod.shaw.ca)\r
+       ([10.0.144.222])\r
+       by pd6mo1no-svcs.prod.shaw.ca with ESMTP; 21 Apr 2012 18:54:55 -0600\r
+X-Cloudmark-SP-Filtered: true\r
+X-Cloudmark-SP-Result: v=1.1 cv=Ro8QOmc0aMDfanRtxUddlQ8SbE2D0zCZP8MBHZpYE5w=\r
+       c=1 sm=1\r
+       a=EznJ_TZJQAwA:10 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17\r
+       a=BVcTlmV9YsAr57iEpRMA:9 a=vi2qkWY2SVtTD3F7MFAA:7\r
+       a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
+Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56])\r
+       by pd7ml1no-dmz.prod.shaw.ca with ESMTP; 21 Apr 2012 18:54:55 -0600\r
+Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
+       id CB2E28004200; Sat, 21 Apr 2012 18:54:54 -0600 (MDT)\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/2] Replying to HTML-only emails\r
+Date: Sat, 21 Apr 2012 18:54:51 -0600\r
+Message-Id: <1335056093-17621-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, 22 Apr 2012 00:55:08 -0000\r
+\r
+Hi all,\r
+\r
+My recent reply enhancements were originally intended to allow proper\r
+quoting of HTML-only email in reply. While the final version was a big\r
+improvement on reply in general, it didn't actually acheive this goal.\r
+\r
+So, this series finishes that work, using mm-display-part to render the\r
+content of the original message correctly before inserting it into the reply\r
+message. I've also added a test for this feature.\r
+\r
+I'm not 100% happy with how the code looks for this, but I couldn't figure\r
+out a way to make it work without the kind of ugly narrow-to-region. If\r
+anyone has suggestions here I'd like to hear them.\r
+\r
+Adam Wolfe Gordon (2):\r
+  test: Replying to an HTML-only message in emacs\r
+  emacs: Correctly quote non-text/plain parts in reply\r
+\r
+ emacs/notmuch-mua.el |   20 +++++++++++++++-----\r
+ test/emacs           |   26 ++++++++++++++++++++++++++\r
+ 2 files changed, 41 insertions(+), 5 deletions(-)\r
+\r
+-- \r
+1.7.5.4\r
+\r