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 MFa6D9BL+1/FXgAA0tVLHw (envelope-from ) for ; Sun, 10 Jan 2021 18:47:44 +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 GA+gC9BL+1/tMwAAB5/wlQ (envelope-from ) for ; Sun, 10 Jan 2021 18:47:44 +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 F30F39402D4 for ; Sun, 10 Jan 2021 18:47:43 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 21C7C29E33; Sun, 10 Jan 2021 13:47:29 -0500 (EST) Received: from mail.hostpark.net (mail.hostpark.net [212.243.197.30]) by mail.notmuchmail.org (Postfix) with ESMTPS id 09A5129CF8 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 1E766160C3 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=FCFiKaE4LX3TQwa 0AZnwTuBRAkjgvSqMrA6FCVUcEIs=; b=yNVdpxq6hsYoy8bz05RZMpaEif6xZ4P UJUKSUTg5qVtgsXcaT/xfN1MOgRCJIJ8orBLfZOBsTQVuThvHo9f64dJKxuH9IKk 4tgiqNLGRi7UsT2WB/Uc5nRvCH5hAl1XtoNkouAbxgl2EjFLY3MQL3iFxP9Y5OKs um/oGaxIpUGM= 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 rBvGs8lH0OqV 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 DE3E0160DD for ; Sun, 10 Jan 2021 19:47:22 +0100 (CET) From: Jonas Bernoulli To: notmuch@notmuchmail.org Subject: [PATCH 2/4] emacs: notmuch-show--register-cids: fix names of bindings Date: Sun, 10 Jan 2021 19:47:20 +0100 Message-Id: <20210110184722.29294-3-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: MTCB6AAS25FR6OANT4XUZB4JL2765EKH X-Message-ID-Hash: MTCB6AAS25FR6OANT4XUZB4JL2765EKH 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=yNVdpxq6; 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: F30F39402D4 X-Spam-Score: 0.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6UDX2EK8G4wI --- emacs/notmuch-show.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index fdf4ab3c..21133611 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -581,13 +581,13 @@ (defun notmuch-show--register-cids (msg part) ;; alternative (even if we can't render it). (push (list content-id msg part) notmuch-show--cids))) ;; Recurse on sub-parts - (pcase-let ((`(,content ,type) + (pcase-let ((`(,type ,subtype) (split-string (downcase (plist-get part :content-type)) "/"))) - (cond ((equal content "multipart") + (cond ((equal type "multipart") (mapc (apply-partially #'notmuch-show--register-cids msg) (plist-get part :content))) - ((and (equal content "message") - (equal type "rfc822")) + ((and (equal type "message") + (equal subtype "rfc822")) (notmuch-show--register-cids msg (car (plist-get (car (plist-get part :content)) :body))))))) -- 2.30.0