From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: issue with mail-extract-address-components Date: Wed, 15 Mar 2017 13:11:13 -0700 Message-ID: <874lyunvvi.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1489608749 16104 195.159.176.226 (15 Mar 2017 20:12:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Mar 2017 20:12:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 15 21:12:25 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1coFHI-0002qv-9j for ged-emacs-devel@m.gmane.org; Wed, 15 Mar 2017 21:12:12 +0100 Original-Received: from localhost ([::1]:39337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coFHO-0004f9-7j for ged-emacs-devel@m.gmane.org; Wed, 15 Mar 2017 16:12:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coFGl-0004f2-Og for emacs-devel@gnu.org; Wed, 15 Mar 2017 16:11:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coFGh-0003gK-AD for emacs-devel@gnu.org; Wed, 15 Mar 2017 16:11:39 -0400 Original-Received: from [195.159.176.226] (port=36576 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1coFGh-0003fT-4L for emacs-devel@gnu.org; Wed, 15 Mar 2017 16:11:35 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1coFGX-0006mS-5J for emacs-devel@gnu.org; Wed, 15 Mar 2017 21:11:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:QrJBwhooBV8MJ2G5uMQw1naEEWE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213054 Archived-At: I got an email with a malformed CC line: Lörsch, Karl , "Wegner, Simon" 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