Revert "Make mail-extract-address-components return the user name more"
commit4c6cdf6fc9ce8a3309948228995b0ea88704c274
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Apr 2018 17:28:04 +0000 (15 19:28 +0200)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 3 Jun 2018 16:48:13 +0000 (3 12:48 -0400)
treea91c49b71989be1b5abb0bb2fb2b2876a8f69e9d
parent51ee8bc4483d3608f4355777aeabbb31887326d9
Revert "Make mail-extract-address-components return the user name more"

This reverts commit 8b50ae8b2284b5652c2843a9d0d076f4f657be28.

According to tests in bug#27656 by OGAWA Hirofumi, this patch
led to wrong results when binding

(dolist (addr '("Rasmus <rasmus@gmx.us>" "Rasmus <mbox@gmx.us>"))
  (dolist (ignore-single '(t nil))
    (dolist (ignore-same '(t nil))
      (let ((mail-extr-ignore-single-names ignore-single)
    (mail-extr-ignore-realname-equals-mailbox-name ignore-same))
(message "%s" (mail-extract-address-components addr))))))

in combination.

(cherry picked from commit a3a9d5434d56f8736cc47e379a1d011d4c779b7c)
lisp/mail/mail-extr.el