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