Hello David,
David Bremner <david@tethera.net> writes:
> David Bremner <david@tethera.net> writes:
>
>>
>> It's not perfect (the encryption status for S/MIME needs some new UI
>> code on the emacs end), but it's better than the status quo, as far as I
>> can tell.
>
> I think this might be a deeper issue. Looking at the structure of
>
> test/corpora/protected-headers/smime-sign+enc.eml
>
> it looks like there is an application/pkcs-7 part for the outer
> container with an encstatus, and one inside that (with the same mime
> type) with a sigstatus. So maybe the right thing is to just ignore
> missing encstatus?
This cures most of the issues for me:
(defun notmuch-show-insert-part-application/pkcs7-mime (msg part content-type nth depth button)
(let* ((encstatus-plist (car (plist-get part :encstatus)))
(encstatus (plist-get encstatus-plist :status)))
(notmuch-crypto-insert-encstatus-button encstatus-plist)
(if (not (string= encstatus "bad"))
(notmuch-show-insert-part-multipart/signed msg
(car (plist-get part :content))
content-type
nth
depth
button))))
(defalias notmuch-show-insert-part-application/x-pkcs7-mime
notmuch-show-insert-part-application/pkcs7-mime)
It shows the contents of the S/MIME message, and could e.g. end up in
notmuch-show.el, I think.
What is left to be desired (IMHO) are some improvements in the gpgsm
integration. User-id and key-id matching is a bit rough sometimes. Not
sure though whether that is a notmuch issue even (probably an EPA one)?
Cheers, and looking forward to your thoughts,
--alexander
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org