From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Raimund Berger" Newsgroups: gmane.emacs.bugs Subject: bug#17720: 24.3; EUDC LDAP duplicate mail handling broken. Date: Fri, 06 Jun 2014 19:51:33 +0200 Message-ID: <87ha3yx6xm.fsf@gigli.quasi.internal> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402077446 20406 80.91.229.3 (6 Jun 2014 17:57:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2014 17:57:26 +0000 (UTC) To: 17720@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 19:57:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WsyOD-0006yA-FY for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jun 2014 19:57:17 +0200 Original-Received: from localhost ([::1]:48778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsyOD-0005Er-3V for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Jun 2014 13:57:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsyO4-00057L-3c for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 13:57:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsyNy-00088L-AP for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 13:57:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsyNy-00088G-7b for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 13:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WsyNx-00044B-QG for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 13:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Raimund Berger" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Jun 2014 17:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17720 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140207740615604 (code B ref -1); Fri, 06 Jun 2014 17:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jun 2014 17:56:46 +0000 Original-Received: from localhost ([127.0.0.1]:39820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsyNh-00043c-Ad for submit@debbugs.gnu.org; Fri, 06 Jun 2014 13:56:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45052) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsyJ6-0003uW-PN for submit@debbugs.gnu.org; Fri, 06 Jun 2014 13:52:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsyIv-0006Lv-AT for submit@debbugs.gnu.org; Fri, 06 Jun 2014 13:51:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsyIv-0006Lq-8U for submit@debbugs.gnu.org; Fri, 06 Jun 2014 13:51:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsyIp-0005vN-DY for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 13:51:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsyIj-0006H7-IT for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 13:51:43 -0400 Original-Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:35482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsyIj-0006H1-BM for bug-gnu-emacs@gnu.org; Fri, 06 Jun 2014 13:51:37 -0400 Original-Received: by mail-we0-f173.google.com with SMTP id u57so3200534wes.18 for ; Fri, 06 Jun 2014 10:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=q7M6/pq7sZRwB6QdY6MP+R+KG8X3NNqgtuKElKKuL0A=; b=D2Sf16YJB4Nt963BxkRTPikZF1Ws88y2RzKSlFyE8PWxezkD+xCRldwVZXmiP8mEL1 ufGBcBWYfWyXNTFOtiaR2R1OACahAyyMT7nZIVWDq4N6NiTcBRQot+SRtUD4/3mqkpp1 xQOxEY/iq4Ps/z5F1ZKpg3QDU0DBnGPBAqhwxSUCUw5tmwioF8j62zs7n2PMk5/nocpg NoZICJEJZr9zc2sbMdV2/GU1glSif4P/ugpYO3M97plvZgkzJ6a/Ad8KIBMz9TuktepF yUb5jpewhUPyMILIaKEp2KNaaOKdz+GQIF4urnI3rwFai8hH27xTUx4e1gBawIOT7TLx MaNg== X-Received: by 10.14.251.4 with SMTP id a4mr823025ees.20.1402077096329; Fri, 06 Jun 2014 10:51:36 -0700 (PDT) Original-Received: from mail.quasi.internal (pD958DED8.dip0.t-ipconnect.de. [217.88.222.216]) by mx.google.com with ESMTPSA id 4sm24285574eeu.16.2014.06.06.10.51.34 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Jun 2014 10:51:35 -0700 (PDT) Original-Received: from gigli.quasi.internal (gigli.quasi.internal [192.168.0.100]) by mail.quasi.internal (Postfix) with ESMTPS id 7EC9C35B for ; Fri, 6 Jun 2014 19:51:33 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Fri, 06 Jun 2014 13:56:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90147 Archived-At: Hi there, EUDC - and this seems to be a long standing issue - doesn't properly recognize and handle LDAP entries that have multiple "mail" records. Example: when having an LDAP entry with cn "John Doe" and two mail records "john@a.com" "john@b.com" the corresponding inline expansion LDAP call returns ((cn . "John Doe") (mail . "john@a.com") (mail . "john@b.com")) given the setting (eudc-protocol-set 'eudc-inline-expansion-format '("%s <%s>" cn email) 'ldap) and eudc-duplicate-attribute-handling-method having its default value ((email . duplicate)). The above list is then passed into eudc-filter-duplicate-attributes, which unfortunately fails to properly handle or even just recognize those duplicate "mail" records. This failure then results into inline expansion just inserting the first mail entry instead of offering a selection between all available mail records, like it properly happens with the bbdb backend for example. Unfortunately, I don't know enough of elisp to maybe fix the issue myself (all the mapcars, cdrs, etc make me dizzy). But it would be great if this issue could be dealt with. I've seen several complaints about this matter on the net btw, one dating back to 2005. So it seems to be an old one. Thanks, R. In GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2014-05-18 on gigli