From a3ee390cf7787abde7e6b625f2cd32bad3d29e90 Mon Sep 17 00:00:00 2001 From: Bob Rogers Date: Sun, 6 Feb 2022 04:07:51 +0100 Subject: 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). --- lisp/mail/ietf-drums.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lisp/mail') 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) -- cgit v1.2.3