From 5334e726d02473ecf441acb1501f44feb42a7325 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 22 Mar 2022 20:13:31 +0100 Subject: [PATCH] Make mail-header-parse-addresses-lax more lax * lisp/mail/mail-parse.el (mail-header-parse-addresses-lax): Be more resilient (bug#54523). --- lisp/mail/mail-parse.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/mail/mail-parse.el b/lisp/mail/mail-parse.el index 23894e59b77..ec719850e2e 100644 --- a/lisp/mail/mail-parse.el +++ b/lisp/mail/mail-parse.el @@ -76,7 +76,8 @@ The return value is a list with mail/name pairs." (delq nil (mapcar (lambda (elem) - (or (mail-header-parse-address elem) + (or (ignore-errors + (mail-header-parse-address elem)) (mail-header-parse-address-lax elem))) (mail-header-parse-addresses string t)))) -- 2.39.5