all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-devel@gnu.org
Subject: issue with mail-extract-address-components
Date: Wed, 15 Mar 2017 13:11:13 -0700	[thread overview]
Message-ID: <874lyunvvi.fsf@ericabrahamsen.net> (raw)

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




             reply	other threads:[~2017-03-15 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-15 20:11 Eric Abrahamsen [this message]
2017-03-15 20:42 ` issue with mail-extract-address-components Andreas Schwab
2017-03-15 21:08   ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874lyunvvi.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.