emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: issue with mail-extract-address-components


From: Andreas Schwab
Subject: Re: issue with mail-extract-address-components
Date: Wed, 15 Mar 2017 21:42:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

On Mär 15 2017, Eric Abrahamsen <address@hidden> wrote:

> I got an email with a malformed CC line:
>
> Lörsch, Karl <address@hidden>, "Wegner, Simon" <address@hidden>
>
> 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" "address@hidden")
>  ("Simon Wegner" "address@hidden"))
>
> 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.

Does mail-extract-address-components actually care whether the singleton
is a valid address?  Should it handle address@hidden different from foo?  But
foo could actually be a valid address in the local domain.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]