From 26f1487d2677fbba268860ce6bd6a1e50c653ea7 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Sun, 2 Dec 2012 21:40:02 +1900 Subject: [PATCH] [PATCH 10/10] emacs: Use --use-schema for show and reply --- 4a/89c66abfc9f8bca5561cff6de6a643cd2c471e | 106 ++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 4a/89c66abfc9f8bca5561cff6de6a643cd2c471e diff --git a/4a/89c66abfc9f8bca5561cff6de6a643cd2c471e b/4a/89c66abfc9f8bca5561cff6de6a643cd2c471e new file mode 100644 index 000000000..97b2f1984 --- /dev/null +++ b/4a/89c66abfc9f8bca5561cff6de6a643cd2c471e @@ -0,0 +1,106 @@ +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 B772F429E44 + for ; Sat, 1 Dec 2012 18:40:32 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 p-BTMPG8vupK for ; + Sat, 1 Dec 2012 18:40:31 -0800 (PST) +Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU + [18.7.68.35]) + by olra.theworths.org (Postfix) with ESMTP id DC869431FC3 + for ; Sat, 1 Dec 2012 18:40:22 -0800 (PST) +X-AuditID: 12074423-b7fcb6d000000927-c0-50babf96ff51 +Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) + by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP + id C6.57.02343.69FBAB05; Sat, 1 Dec 2012 21:40:22 -0500 (EST) +Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) + by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id qB22eBGe013711; + Sat, 1 Dec 2012 21:40:11 -0500 +Received: from drake.dyndns.org + (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com + [209.6.116.242]) (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qB22e6ch025606 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Sat, 1 Dec 2012 21:40:10 -0500 (EST) +Received: from amthrax by drake.dyndns.org with local (Exim 4.77) + (envelope-from ) + id 1TezTS-0000xq-6Y; Sat, 01 Dec 2012 21:40:06 -0500 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: [PATCH 10/10] emacs: Use --use-schema for show and reply +Date: Sat, 1 Dec 2012 21:40:02 -0500 +Message-Id: <1354416002-3557-10-git-send-email-amdragon@mit.edu> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <1354416002-3557-1-git-send-email-amdragon@mit.edu> +References: <1354416002-3557-1-git-send-email-amdragon@mit.edu> +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsUixCmqrDtt/64Ag+9vZCyu35zJ7MDo8WzV + LeYAxigum5TUnMyy1CJ9uwSujO51eQVTOSv+znnF2MC4n72LkZNDQsBEYsrlE8wQtpjEhXvr + 2boYuTiEBPYxSiw5ehPKWc8osb6rlxnCecgksW/OfEYIZy6jxKNV/xhB+tkENCS27V8OZosI + SEvsvDubtYuRg4NZQE3iT5cKSFhYwFHi5/7NYCUsAqoSe/d9YgWxeQUcJLqffYI6QxHInsAG + 0soJFF/RzQMSFhKwl/j/+xrbBEb+BYwMqxhlU3KrdHMTM3OKU5N1i5MT8/JSi3TN9HIzS/RS + U0o3MYJCht1FeQfjn4NKhxgFOBiVeHgj5uwKEGJNLCuuzD3EKMnBpCTKe2UHUIgvKT+lMiOx + OCO+qDQntfgQowQHs5IIL4sJUI43JbGyKrUoHyYlzcGiJM57LeWmv5BAemJJanZqakFqEUxW + hoNDSYL38l6gRsGi1PTUirTMnBKENBMHJ8hwHqDh4ftAhhcXJOYWZ6ZD5E8xKkqJ8/qBJARA + EhmleXC9sJh+xSgO9IowrydIFQ8wHcB1vwIazAQ0+M2y7SCDSxIRUlINjMKfrAw//Pt9e+LP + 03P+v4vfpZaW2/hDzPT2tNpV/EW9kkxTI7w3CDi9WqLVvGNaTVRJ+ivJa9N27vjA3fcxqH7P + xF82xo9f/1q8nmOKrrvsI6cfic/i5upYtyY/Tl7DtSLsJfOhfUf8VV7xK3/guW10Na593//E + eGenmec3Te+3//jujBzX189KLMUZiYZazEXFiQAgdSVgxAIAAA== +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, 02 Dec 2012 02:40:33 -0000 + +--- + emacs/notmuch-mua.el | 2 +- + emacs/notmuch-query.el | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el +index ac2d29e..0e1c7a7 100644 +--- a/emacs/notmuch-mua.el ++++ b/emacs/notmuch-mua.el +@@ -146,7 +146,7 @@ list." + (unless (bolp) (insert "\n"))) + + (defun notmuch-mua-reply (query-string &optional sender reply-all) +- (let ((args '("reply" "--format=json")) ++ (let ((args '("reply" "--format=json" "--use-schema=1")) + reply + original) + (when notmuch-show-process-crypto +diff --git a/emacs/notmuch-query.el b/emacs/notmuch-query.el +index e7e3520..7517aec 100644 +--- a/emacs/notmuch-query.el ++++ b/emacs/notmuch-query.el +@@ -29,7 +29,7 @@ A thread is a forest or list of trees. A tree is a two element + list where the first element is a message, and the second element + is a possibly empty forest of replies. + " +- (let ((args '("show" "--format=json"))) ++ (let ((args '("show" "--format=json" "--use-schema=1"))) + (if notmuch-show-process-crypto + (setq args (append args '("--decrypt")))) + (setq args (append args search-terms)) +-- +1.7.10.4 + -- 2.26.2