all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* issue with mail-extract-address-components
@ 2017-03-15 20:11 Eric Abrahamsen
  2017-03-15 20:42 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Abrahamsen @ 2017-03-15 20:11 UTC (permalink / raw)
  To: emacs-devel

I got an email with a malformed CC line:

Lörsch, Karl <loersch@domain.cc>, "Wegner, Simon" <Wegner@domain.cc>

Ie, no quotes around the first name. `mail-extract-address-components'
splits on the comma, as I suppose it should, and its return value is:

(("Lörsch" "Lörsch")
 ("Karl" "loersch@domain.cc")
 ("Simon Wegner" "Wegner@domain.cc"))

It's doing the best it can here, but I would expect ("Lörsch" nil) as
the first element, which would make it easier for other functions to
handle the return value correctly.

Comments in mail-extr.el allude to a corpus of test cases too vast to be
included in the codebase, and direct us to the Maintainer if we find
cases that need to be handled. But those comments are from 1994, and the
Maintainer is this mailing list, so...

Does anyone have an opinion about this? I suppose handling the CC line
"correctly" would be the wrong thing to do, but I sure would prefer
("Lörsch" nil).

Thanks,
Eric




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-15 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-15 20:11 issue with mail-extract-address-components Eric Abrahamsen
2017-03-15 20:42 ` Andreas Schwab
2017-03-15 21:08   ` Eric Abrahamsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.