From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bruno Hertz" Newsgroups: gmane.emacs.help Subject: Re: eudc / ldap / mail duplicates. Date: Mon, 02 May 2005 21:29:25 +0200 Organization: Cablecom Newsserver Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115072594 9787 80.91.229.2 (2 May 2005 22:23:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 May 2005 22:23:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 03 00:23:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DSjGU-00037k-Dd for geh-help-gnu-emacs@m.gmane.org; Tue, 03 May 2005 00:19:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSjNS-0005uy-CW for geh-help-gnu-emacs@m.gmane.org; Mon, 02 May 2005 18:26:58 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.hispeed.ch!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: 80-218-17-54.dclient.hispeed.ch Original-X-Trace: news.hispeed.ch 1115062165 16004 80.218.17.54 (2 May 2005 19:29:25 GMT) Original-X-Complaints-To: news@hispeed.ch Original-NNTP-Posting-Date: Mon, 2 May 2005 19:29:25 +0000 (UTC) User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:BGz0GyEgkIdrH4WQ0TUSC8dEIMk= Original-Xref: shelby.stanford.edu gnu.emacs.help:130609 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26189 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26189 Kevin Rodgers writes: > Bruno Hertz wrote: >> Kevin Rodgers writes: >>>Don't you just need to frob the eudc-duplicate-attribute-handling-method >>>variable? >> >> Nope. As of Emacs CVS the whole thing seems to be broken. Maybe I >> should file a bug or something. >> >> Some detail anyway: ldap returns lists of records, like >> ( ((mail . john@a) (mail . john@b)) ((mail . carla@c)) ) >> >> In this example, I have two ldap records, one for john and one for >> carla, where the record of john contains two mail addresses. So his >> record would be a candidate for duplicate handling. >> >> Unfortunately, eudc-filter-duplicate-attributes doesn't even recognize >> those duplicates and hence doesn't even come so far as to apply >> eudc-duplicate-attribute-handling-method. So whatever you specify for >> the latter (concat, duplicate, whatever) has no effect. > > I was making a guess regarding the ATTR component of an (ATTR . METHOD) > element of eudc-duplicate-attribute-handling-method, because its default > value is ((email . duplicate)) but your example has mail as an > attribute. Thus: > > (setq eudc-duplicate-attribute-handling-method > (cons '(mail . duplicate) eudc-duplicate-attribute-handling-method)) That was one of my first attempts either, but 'email' is actually the correct default since for some attributes a name translation is in effect. Cf. (defvar eudc-ldap-attributes-translation-alist '((name . sn) (firstname . givenname) (email . mail) (phone . telephonenumber)) "Alist mapping EUDC attribute names to LDAP names.") in eudcb-ldap.el So no, that isn't it. Again, mentioned function apparently is broken. Regards, Bruno.