From 400645c3716be7e97fac221fc06ed4de5e975ff4 Mon Sep 17 00:00:00 2001 From: Adam Wolfe Gordon Date: Mon, 12 Mar 2012 22:05:32 +1800 Subject: [PATCH] [PATCH v7 00/10] Reply enhancements --- 6a/fa93f4ba6da9227f755a481e6f8e43a5754aa4 | 104 ++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 6a/fa93f4ba6da9227f755a481e6f8e43a5754aa4 diff --git a/6a/fa93f4ba6da9227f755a481e6f8e43a5754aa4 b/6a/fa93f4ba6da9227f755a481e6f8e43a5754aa4 new file mode 100644 index 000000000..3a1648671 --- /dev/null +++ b/6a/fa93f4ba6da9227f755a481e6f8e43a5754aa4 @@ -0,0 +1,104 @@ +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 9638B431FBC + for ; Sun, 11 Mar 2012 21:05:52 -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 nBPJZHHl-UxA for ; + Sun, 11 Mar 2012 21:05:51 -0700 (PDT) +Received: from idcmail-mo2no.shaw.ca (idcmail-mo2no.shaw.ca [64.59.134.9]) + by olra.theworths.org (Postfix) with ESMTP id D0F90431FAE + for ; Sun, 11 Mar 2012 21:05:51 -0700 (PDT) +Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd6ml2no-ssvc.prod.shaw.ca) + ([10.0.144.222]) + by pd6mo1no-svcs.prod.shaw.ca with ESMTP; 11 Mar 2012 22:05:50 -0600 +X-Cloudmark-SP-Filtered: true +X-Cloudmark-SP-Result: v=1.1 cv=oQE6vNJ3d7oTBHj4PDKYH99BAdyPlqTp0xAtaaBYR4E= + c=1 sm=1 a=BLceEmwcHowA:10 a=yQp6g8lIsgqumF79BAsFDg==:17 + a=4h0-BSLhytRg3FTCH9AA:9 + a=dNJP58d0TKJLc99GAuIA:7 a=odvB31Xb1hMA:10 + a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 +Received: from unknown (HELO lagos.xvx.ca) ([96.52.216.56]) + by pd6ml2no-dmz.prod.shaw.ca with ESMTP; 11 Mar 2012 22:05:50 -0600 +Received: by lagos.xvx.ca (Postfix, from userid 1000) + id E84608004958; Sun, 11 Mar 2012 22:05:49 -0600 (MDT) +From: Adam Wolfe Gordon +To: notmuch@notmuchmail.org +Subject: [PATCH v7 00/10] Reply enhancements +Date: Sun, 11 Mar 2012 22:05:32 -0600 +Message-Id: <1331525142-30539-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: Mon, 12 Mar 2012 04:05:52 -0000 + +Hi everyone, + +This is a new version of my reply series [1] that addresses Jani's and +Austin's reviews and fixes a couple of bugs I found in using the patches. + +Summary of the changes: + +* The patch that disallows replying to multiple messages with the default + format has been dropped, as Jani and Austin agreed that there's no + reason this should be changed now. The JSON format sill only allows + replying to a single message. + +* The emacs reply code now shares code to get message content with show. + This should mean better handling of character sets and other things. + +* I noticed that reply supports a --decrypt option, and the emacs interface + actually does use it. I've documented the option in the reply man page. + If someone can test that replying to encrypted messages actually works in + emacs, that would be great - I have no way to test this. + +[1] id:"1329893199-21630-1-git-send-email-awg+notmuch@xvx.ca" + +Adam Wolfe Gordon (10): + test: Add broken test for the new JSON reply format. + reply: Factor out reply creation + TODO: Add replying to multiple messages + reply: Add a JSON reply format. + schemata: Add documentation for JSON reply format. + man: Update notmuch-reply man page for JSON format. + man: Add --decrypt to reply flags + emacs: Factor out useful functions into notmuch-lib + test: Add broken tests for new emacs reply functionality + emacs: Use the new JSON reply format and message-cite-original + + devel/TODO | 8 + + devel/schemata | 27 +- + emacs/notmuch-lib.el | 44 ++ + emacs/notmuch-mua.el | 136 ++++-- + emacs/notmuch-show.el | 24 +- + man/man1/notmuch-reply.1 | 18 +- + notmuch-client.h | 14 +- + notmuch-reply.c | 153 ++++-- + notmuch-show.c | 29 +- + test/emacs | 101 ++++- + test/multipart | 52 ++ + test/test-lib | 1242 ++++++++++++++++++++++++++++++++++++++++++++++ + 12 files changed, 1726 insertions(+), 122 deletions(-) + create mode 100755 test/test-lib + +-- +1.7.5.4 + -- 2.26.2