From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5200 Path: news.gmane.org!not-for-mail From: =?iso-8859-15?Q?S=E9bastien?= Kirche Newsgroups: gmane.emacs.gnus.user Subject: Re: BBDB and EUDC/LDAP Date: Thu, 09 Jun 2005 01:42:36 +0200 Organization: Aucune. Message-ID: <85vf4otnyr.fsf@obelix.seki.fr> References: Reply-To: =?iso-8859-15?Q?S=E9bastien?= Kirche NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138670978 26464 80.91.229.2 (31 Jan 2006 01:29:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:29:38 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:34:56 2006 Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: falbala.seki.fr Original-X-Trace: yeuse.cuq.org 1118274157 98223 81.56.248.57 (8 Jun 2005 23:42:37 GMT) Original-X-Complaints-To: abuse@cuq.org Original-NNTP-Posting-Date: Wed, 8 Jun 2005 23:42:37 +0000 (UTC) X-Face: ;T}O6aj2o*d:|9po%NCuYvExN3]<#cHr0"FaWCh[}WVn6&@L)YWO'&6AO5Ex:MX=H;.^e}o Td*OaFQEBc_xu%+ChwRl!KK`I'["$^aO1gIN{4OyBdO@1HHD5YO#[kiVCk|/-|mmYnU8yTp+eOv."d 1.G3;ro0Q/`,UY+vY/#5b/{OYxE+X\)tc~p~1vbmZ!o4sciW+e8MW|Pz|nl`l*}]8[#1zQO"]d2*{d wrTKu]5t*Gy_pm3e8o=:(c_ju'zlQ<[oJ|\XjgQQmWZC7S]-Fmp\eBHnBO']/te~/;\@l" D#:h)8Q Cancel-Lock: sha1:TFPnwaJVGI51RT9o6DuvUUSOvoQ= User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!newsfeed.pionier.net.pl!news-fra1.dfn.de!npeer.de.kpn-eurorings.net!feeder2.cambrium.nl!feed.tweaknews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!feeder.xsnews.nl!feeder.news-service.com!proxad.net!feed.ac-versailles.fr!news.cuq.org!not-for-mail Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:5342 Original-Lines: 82 X-Gnus-Article-Number: 5342 Tue Jan 17 17:34:56 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5200 Archived-At: At 16:03 on mar 29 2005, David S. Goldberg said : [about searching recipient with eudc into both a ldap server *and* bbdb] > eudc knows about bbdb as well and it to looks in both places, I'm > pretty sure, by default. The only thing you lose with > eudc-expand-inline is completion cycling. For when I need that > (rarely for me, may be important for you) I have mapped C-c TAB to > bbdb-complete-name. Some weeks ago i completed my configuration to look into the ldap directory of my company and my bbdb. I forget to post the result. FWIW i publish it, maybe one can find it useful ? Just to give some details : - i use gnus/bbdb both at home and at work, but i have ldap directory only at work (server named work-server) and I have only one .emacs and one .gnus. So I enable ldap settings after testing the system-name - my system at work is a Macintosh with OSX so I also enable Address Book searching - 'SAGE' is a given organisational unit that is set in the ldap tree (setq message-expand-name-databases '(eudc)) ; was bbdb ;; réglages Emacs Unified Directory Client (require 'eudc nil t) (require 'eudcb-bbdb nil t) (require 'eudcb-mab nil t) ;; support Macintosh Address Book - needs 'contacts' ;; http://www.newartisans.com/johnw/Emacs/eudcb-mab.el ;; http://gnufoo.org/contacts/contacts.html (eudc-set-server "localhost" 'bbdb t);;main server (setq eudc-inline-expansion-servers 'hotlist);;search in hotlist order (add-to-list 'eudc-server-hotlist '("localhost" . bbdb) t) (eudc-protocol-set 'eudc-inline-query-format '((firstname) (lastname) (firstname lastname) (net)) 'bbdb) (eudc-protocol-set 'eudc-inline-expansion-format '("%s %s <%s>" firstname lastname net) 'bbdb) (when (string-match "\\`goudurix" system-name) (add-to-list 'eudc-server-hotlist '("localhost" . mab) t) (add-to-list 'eudc-server-hotlist '("work-server" . ldap) t) (setq ldap-host-parameters-alist '(("work-server" base "o=SAGE" auth nil scope subtree)) eudc-query-form-attributes '(uid name firstname email)) (eudc-protocol-set 'eudc-inline-query-format '((name) (email)) 'mab) (eudc-protocol-set 'eudc-inline-expansion-format '("%s <%s>" name email) 'mab) (eudc-protocol-set 'eudc-inline-query-format '(;(cn) ;(cn cn) ;(cn cn cn) ;(sn) ;(givenname) ;(surname) ;(givenname surname) ;(fullname) (uid) (name) ;(surname) (mail)) 'ldap) (eudc-protocol-set 'eudc-inline-expansion-format '("%s <%s>" cn mail) 'ldap) ) HTH. -- Sébastien Kirche