]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: notmuch-show--register-cids: fix names of bindings
authorJonas Bernoulli <jonas@bernoul.li>
Sun, 10 Jan 2021 18:47:20 +0000 (19:47 +0100)
committerDavid Bremner <david@tethera.net>
Fri, 15 Jan 2021 11:30:00 +0000 (07:30 -0400)
emacs/notmuch-show.el

index fdf4ab3c289b62f7b38e1bd619a767588041326e..21133611fb4791402547cfacf74f7160c76f9137 100644 (file)
@@ -581,13 +581,13 @@ message at DEPTH in the current thread."
       ;; 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)))))))