diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-08-14 15:20:59 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-08-14 15:20:59 +0200 |
commit | e91b574bf8b14c0d8cc33242570bffa8ddc38760 (patch) | |
tree | dd82287d88a4d46de61b315a51eb389488b089df /lisp/mail/mail-extr.el | |
parent | a8a3fd8f8e27089ac46bf98e534529ff03f679a5 (diff) | |
download | emacs-e91b574bf8b14c0d8cc33242570bffa8ddc38760.tar.gz |
Add new functions for lax mail address splitting
* lisp/emacs-lisp/subr-x.el (string-clean-whitespace): Autoload.
* lisp/mail/mail-parse.el (mail-header-parse-addresses-lax)
(mail-header-parse-address-lax): New functions.
Diffstat (limited to 'lisp/mail/mail-extr.el')
-rw-r--r-- | lisp/mail/mail-extr.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mail/mail-extr.el b/lisp/mail/mail-extr.el index 88fb0866856..24d8311f641 100644 --- a/lisp/mail/mail-extr.el +++ b/lisp/mail/mail-extr.el @@ -707,7 +707,10 @@ This function is primarily meant for when you're displaying the result to the user: Many prettifications are applied to the result returned. If you want to decode an address for further non-display use, you should probably use -`mail-header-parse-address' instead." +`mail-header-parse-address' instead. Also see +`mail-header-parse-address-lax' for a function that's less strict +than `mail-header-parse-address', but does less post-processing +to the results." (let ((canonicalization-buffer (get-buffer-create " *canonical address*")) (extraction-buffer (get-buffer-create " *extract address components*")) value-list) |