]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix decoding error in ietf-drums-parse-address
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 2 Feb 2022 18:07:01 +0000 (19:07 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 2 Feb 2022 18:07:37 +0000 (19:07 +0100)
* lisp/mail/ietf-drums.el (ietf-drums-parse-address): Don't try to
decode the name if there is no name (bug#53716).

lisp/mail/ietf-drums.el

index 4a0795918906f8cb2535bb6ddcb8d6a445fcd4ea..952707226f58dbe739619364dfdb229a4c4f9709 100644 (file)
@@ -240,7 +240,7 @@ If DECODE, the DISPLAY-NAME will have RFC2047 decoding performed
            (cons
             (mapconcat #'identity (nreverse display-name) "")
             (ietf-drums-get-comment string)))
-       (cons mailbox (if decode
+       (cons mailbox (if (and decode display-string)
                           (rfc2047-decode-string display-string)
                         display-string))))))