From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id E73216DE0B0A for ; Mon, 1 Oct 2018 09:06:44 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.292 X-Spam-Level: X-Spam-Status: No, score=0.292 tagged_above=-999 required=5 tests=[AWL=-0.150, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tZYZmwb29S-V for ; Mon, 1 Oct 2018 09:06:44 -0700 (PDT) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by arlo.cworth.org (Postfix) with ESMTPS id E3CE66DE0278 for ; Mon, 1 Oct 2018 09:06:40 -0700 (PDT) Received: by mail-wm1-f67.google.com with SMTP id b19-v6so9378571wme.3 for ; Mon, 01 Oct 2018 09:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=1NSb3vq76jCWAMRHjSdwHhGOzIat1pg8JtymRhgM+pQ=; b=XZ3cfhLY9Qze16s06PWT/OfSRSooo364Zdcv4MXKwzS9SP4kFhmthg8SEtXi5eL5KP BdUqzVTwiZ7f9s86M9ytPHfBGbLOP5LkH2oFlza3IJPwKarP2Vf1cCVsyPI35ZBzYQ3z crZddtPDTrKNOpFeRnyB0q2omvDr1fB8CCAc5zaC79MXjF4Waep2LfV4M2xAVoP6z1Ar 3EXFRczFpG8zZNIN1pnsGljdomqoSEaqI+j7IuzAvixdcS3ueTsiEv5cR9tbEq8u3UKR ERbXnZaLkhCjgi9SIO2PeyH/82OuwL/wQ7BSwRfxnOipDA/bJF29nQJgaYssP+j0l7ms y7hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1NSb3vq76jCWAMRHjSdwHhGOzIat1pg8JtymRhgM+pQ=; b=A1iTyG2nuFARV5xk4O+KZWkMeM/8FVnD46kZZuYSfa3g2KkDjEbA26KB50lr+If2bq ykgRS+zydKjnCqHAl246XnB+PnzbLROWSzPNJvA40/Y4kUcqTSkDKOO0vpc2mM+gDpZA zs3ARIs5tBrOpgOAM8D45+4vIAu5pybpr3nBLouU4nVfxHmN8/sTA6hwPDCQNSDUFUyH qxBTOwSWh8ACNAQs8PV/AJavqT2AuQHjNyi9Z695Kf4YMI9RO5zNmOEP/Mx8ON+mfE9g paYKxt88M6TDyB+1t6MpP+d21BVCb2yI4avKxShcGUrvv0ot2MtGFLkTi7VvOnKwr5kf 8Zig== X-Gm-Message-State: ABuFfohpMrovfRf+uL35g4t+KJNE4ceQ/jBrkFPMU/0QJHd6m1J3DxF7 EGuBfJSYBrHB+Sjmmv78m01b6eRxgoLoXQ== X-Google-Smtp-Source: ACcGV626Yt6IIJE4/TK1nxi/M0Or9kT1CbOCs8c6Df0fL3OnxinG/FG0FFTwMXRgjkalJNHbfgGSTA== X-Received: by 2002:a1c:d0c8:: with SMTP id h191-v6mr9732766wmg.74.1538409999274; Mon, 01 Oct 2018 09:06:39 -0700 (PDT) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id t143-v6sm5714626wmt.2.2018.10.01.09.06.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 09:06:38 -0700 (PDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 172ad148 for ; Mon, 1 Oct 2018 16:06:33 +0000 (UTC) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v3 4/4] emacs: Improve the reporting of key activity Date: Mon, 1 Oct 2018 17:06:33 +0100 Message-Id: <20181001160633.26775-5-dme@dme.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181001160633.26775-1-dme@dme.org> References: <20181001160633.26775-1-dme@dme.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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, 01 Oct 2018 16:06:45 -0000 Improve the information provided about key retrieval and key validity. --- emacs/notmuch-crypto.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el index 99087d0b..553ddca8 100644 --- a/emacs/notmuch-crypto.el +++ b/emacs/notmuch-crypto.el @@ -147,13 +147,16 @@ by user FROM." (insert "\n")) (defun notmuch-crypto-sigstatus-good-callback (button) - (let* ((sigstatus (button-get button :notmuch-sigstatus)) + (let* ((id (notmuch-show-get-message-id)) + (sigstatus (button-get button :notmuch-sigstatus)) (fingerprint (concat "0x" (plist-get sigstatus :fingerprint))) (buffer (get-buffer-create "*notmuch-crypto-gpg-out*")) (window (display-buffer buffer))) (with-selected-window window (with-current-buffer buffer (goto-char (point-max)) + (insert (format "-- Key %s in message %s:\n" + fingerprint id)) (call-process notmuch-crypto-gpg-program nil t t "--list-keys" fingerprint)) (recenter -1)))) @@ -209,10 +212,14 @@ corresponding key when the status button is pressed." (progn (notmuch-crypto--set-button-label button (format "Retrieving key %s asynchronously..." keyid)) + (with-current-buffer buffer + (goto-char (point-max)) + (insert (format "--- Retrieving key %s:\n" keyid))) (let ((p (make-process :name "notmuch GPG key retrieval" + :connection-type 'pipe :buffer buffer + :stderr buffer :command (list notmuch-crypto-gpg-program "--recv-keys" keyid) - :connection-type 'pipe :sentinel #'notmuch-crypto--async-key-sentinel ;; Create the process stopped so that ;; we have time to store the key id, @@ -228,6 +235,7 @@ corresponding key when the status button is pressed." (with-selected-window window (with-current-buffer buffer (goto-char (point-max)) + (insert (format "--- Retrieving key %s:\n" keyid)) (call-process notmuch-crypto-gpg-program nil t t "--recv-keys" keyid) (insert "\n") (call-process notmuch-crypto-gpg-program nil t t "--list-keys" keyid)) -- 2.19.0