emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/autocrypt 599d5f3f5d 78/94: Further improve robustness


From: ELPA Syncer
Subject: [elpa] externals/autocrypt 599d5f3f5d 78/94: Further improve robustness of autocrypt-process-header
Date: Sun, 26 Mar 2023 07:58:02 -0400 (EDT)

branch: externals/autocrypt
commit 599d5f3f5d339b839194f8e437d34149abc57e8d
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Further improve robustness of autocrypt-process-header
---
 autocrypt.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/autocrypt.el b/autocrypt.el
index 0164f40c3b..b8771150b2 100644
--- a/autocrypt.el
+++ b/autocrypt.el
@@ -377,7 +377,8 @@ Argument DATE contains the time value of the \"From\" tag."
 ;; https://autocrypt.org/level1.html#updating-autocrypt-peer-state
 (defun autocrypt-process-header ()
   "Update internal autocrypt state."
-  (let* ((from (autocrypt-canonicalise (autocrypt-get-header "From")))
+  (let* ((from-raw (autocrypt-get-header "From"))
+         (from (and from-raw (autocrypt-canonicalise from-raw)))
          (date (autocrypt-get-header "Date"))
          (header (autocrypt-get-header "Autocrypt"))
          parse addr preference keydata peer)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]