From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +crUBcxL+18TYgAA0tVLHw (envelope-from ) for ; Sun, 10 Jan 2021 18:47:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qL8UAcxL+1/tMwAAB5/wlQ (envelope-from ) for ; Sun, 10 Jan 2021 18:47:40 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C89CF9403A2 for ; Sun, 10 Jan 2021 18:47:39 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0BA3429E1C; Sun, 10 Jan 2021 13:47:28 -0500 (EST) Received: from mail.hostpark.net (mail.hostpark.net [212.243.197.30]) by mail.notmuchmail.org (Postfix) with ESMTPS id 0001729CF2 for ; Sun, 10 Jan 2021 13:47:23 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 13589160BA for ; Sun, 10 Jan 2021 19:47:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=sel2011a; t=1610304442; bh=oCeHOPa1AE0Ovh6 yre3dmgtNzBFIjfHwoX3TSRgxAVo=; b=2R5JMj+Py2C+KMp5qvwv3prd2UswjhY YVxDCBogRUAxTntyfzDCBLv0MHTwGzIxJkFGQ2YnEcLCbJO3uMEUXwCW8Y61j2G3 3VVOSKD//ZIzVd1g+SXdl9G9xtIi0GATFqqPL85xSpBmlsY6kPMJ1nEiD3trIJuR uUlsnLMoGGdQ= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id XyuohZpiXBV6 for ; Sun, 10 Jan 2021 19:47:22 +0100 (CET) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id D5865160C3 for ; Sun, 10 Jan 2021 19:47:22 +0100 (CET) From: Jonas Bernoulli To: notmuch@notmuchmail.org Subject: [PATCH 1/4] emacs: notmuch-mua-add-more-hidden-headers: use local binding Date: Sun, 10 Jan 2021 19:47:19 +0100 Message-Id: <20210110184722.29294-2-jonas@bernoul.li> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210110184722.29294-1-jonas@bernoul.li> References: <20210110184722.29294-1-jonas@bernoul.li> MIME-Version: 1.0 Message-ID-Hash: MAH5YT44SHYTS646USOZ3WOG3IX7U72E X-Message-ID-Hash: MAH5YT44SHYTS646USOZ3WOG3IX7U72E X-MailFrom: jonas@bernoul.li X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.06 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=bernoul.li header.s=sel2011a header.b=2R5JMj+P; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: C89CF9403A2 X-Spam-Score: 0.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: k2eEDOUUdyXo --- emacs/notmuch-mua.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 08c73c16..bbf059a2 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -217,11 +217,10 @@ (defun notmuch-mua-add-more-hidden-headers () (defun notmuch-mua-reply-crypto (parts) "Add mml sign-encrypt flag if any part of original message is encrypted." (cl-loop for part in parts - if (notmuch-match-content-type (plist-get part :content-type) - "multipart/encrypted") + for type = (plist-get part :content-type) + if (notmuch-match-content-type type "multipart/encrypted") do (mml-secure-message-sign-encrypt) - else if (notmuch-match-content-type (plist-get part :content-type) - "multipart/*") + else if (notmuch-match-content-type type "multipart/*") do (notmuch-mua-reply-crypto (plist-get part :content)))) ;; There is a bug in Emacs' message.el that results in a newline -- 2.30.0