diff options
author | Bob Rogers <rogers@rgrjr.com> | 2022-02-06 04:07:51 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-02-06 04:08:18 +0100 |
commit | a3ee390cf7787abde7e6b625f2cd32bad3d29e90 (patch) | |
tree | 40ba2e3e041fe87565e067a0156892eede0cef95 /lisp/mail | |
parent | 50e51beabb2420ba3f844742352a98c7987c4932 (diff) | |
download | emacs-a3ee390cf7787abde7e6b625f2cd32bad3d29e90.tar.gz emacs-a3ee390cf7787abde7e6b625f2cd32bad3d29e90.tar.bz2 emacs-a3ee390cf7787abde7e6b625f2cd32bad3d29e90.zip |
Add ietf-drums tests, fix parse-address decoding
* test/lisp/mail/ietf-drums-tests.el (ietf-drums-tests): Test most of
lisp/mail/ietf-drums.el functionality.
* lisp/mail/ietf-drums.el: (ietf-drums-parse-address): Bug fix:
Require rfc2047 when needed (bug#53811).
Diffstat (limited to 'lisp/mail')
-rw-r--r-- | lisp/mail/ietf-drums.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mail/ietf-drums.el b/lisp/mail/ietf-drums.el index 952707226f5..9bdc0533e34 100644 --- a/lisp/mail/ietf-drums.el +++ b/lisp/mail/ietf-drums.el @@ -191,6 +191,8 @@ the Content-Transfer-Encoding header of a mail." "Parse STRING and return a MAILBOX / DISPLAY-NAME pair. If DECODE, the DISPLAY-NAME will have RFC2047 decoding performed (that's the \"=?utf...q...=?\") stuff." + (when decode + (require 'rfc2047)) (with-temp-buffer (let (display-name mailbox c display-string) (ietf-drums-init string) |