* BBDB and EUDC/LDAP
@ 2005-03-29 14:48 Sébastien Kirche
2005-03-29 14:59 ` David S. Goldberg
0 siblings, 1 reply; 18+ messages in thread
From: Sébastien Kirche @ 2005-03-29 14:48 UTC (permalink / raw)
Hi,
I am using BBDB to happily manage my address book for Gnus under several
platforms.
At work we also have an Exchange server that I can query for recipients via
LDAP and it works within Emacs via the Tools/Directory Search commands.
I wonder if one could interface Gnus and/or BBDB to call the LDAP server for
recipients completion as BBDB already does with the TAB key. In other
words : how to have completion for the EUDC in addition to BBDB ?
I have searched and the only result is to call with a key binding
eudc-expand-inline separately from the BBDB completion...
Did anyone ever tried that ? Thanks.
--
Sébastien Kirche
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-29 14:48 BBDB and EUDC/LDAP Sébastien Kirche
@ 2005-03-29 14:59 ` David S. Goldberg
2005-03-29 15:17 ` Sébastien Kirche
2005-06-08 23:42 ` Sébastien Kirche
0 siblings, 2 replies; 18+ messages in thread
From: David S. Goldberg @ 2005-03-29 14:59 UTC (permalink / raw)
> I have searched and the only result is to call with a key binding
> eudc-expand-inline separately from the BBDB completion...
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.
--
Dave Goldberg
david.goldberg6@verizon.net
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-29 14:59 ` David S. Goldberg
@ 2005-03-29 15:17 ` Sébastien Kirche
2005-03-29 15:54 ` Reiner Steib
2005-06-08 23:42 ` Sébastien Kirche
1 sibling, 1 reply; 18+ messages in thread
From: Sébastien Kirche @ 2005-03-29 15:17 UTC (permalink / raw)
Le 29 Mar 2005, David S. Goldberg a formulé :
> 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.
I have searched a little further and found in cvs gnus that
message-expand-name has been modified to call eudc-expand-inline if
eudc-protocol is defined.
Seem to be exactly what i am looking for.
But I am with cvs Emacs, not cvs Gnus : maybe I will have to wait a bit
until merge of the feature ?
--
Sébastien Kirche
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-29 15:17 ` Sébastien Kirche
@ 2005-03-29 15:54 ` Reiner Steib
2005-03-29 18:28 ` Sébastien Kirche
0 siblings, 1 reply; 18+ messages in thread
From: Reiner Steib @ 2005-03-29 15:54 UTC (permalink / raw)
On Tue, Mar 29 2005, Sébastien Kirche wrote:
> I have searched a little further and found in cvs gnus that
> message-expand-name has been modified to call eudc-expand-inline if
> eudc-protocol is defined.
>
> Seem to be exactly what i am looking for.
>
> But I am with cvs Emacs, not cvs Gnus : maybe I will have to wait a
> bit until merge of the feature ?
Don't hold your breath. Unless there is a change in the policies, No
Gnus will not be merged into Emacs 22. You'll probably have to wait
for Emacs 23. We only merge bugfixes to the stable branch (Gnus
5.10.x aka Oort Gnus) into Emacs' repository. This is not a bugfix,
so I wouldn't install it in the stable branch without Lars' okay. But
as this particular change is very limited, you may ask Lars whether it
is okay to install it in the stable branch.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-29 15:54 ` Reiner Steib
@ 2005-03-29 18:28 ` Sébastien Kirche
2005-03-29 18:50 ` Reiner Steib
0 siblings, 1 reply; 18+ messages in thread
From: Sébastien Kirche @ 2005-03-29 18:28 UTC (permalink / raw)
Le 29 mar 2005, Reiner Steib s'est exprimé ainsi :
> Don't hold your breath.
Yep, i had noticed after my former message that this modification is now 14
months old :/
> Unless there is a change in the policies, No Gnus will not be merged into
> Emacs 22. You'll probably have to wait for Emacs 23. We only merge
> bugfixes to the stable branch (Gnus 5.10.x aka Oort Gnus) into Emacs'
> repository.
OK. I misunderstood that merge policy : i though that there was defined a
periodic update from Gnus CVS to Emacs CVS, not only with bugfixes but also
features.
> This is not a bugfix, so I wouldn't install it in the stable branch
> without Lars' okay. But as this particular change is very limited, you may
> ask Lars whether it is okay to install it in the stable branch.
Well i don't actually ask for such a personal favor... And surely there is
also some other features that i could find useful.
Instead maybe you could tell me a recipe to update Emacs cvs with Gnus cvs ?
I have already a local checkout of Emacs that i update/build regularly. I
could also checkout Gnus. Then ?
I could patch emacs/lisp/gnus with gnus/lisp directory and so on ? Maybe you
have a batch script for such update ?
TIA.
--
Sébastien Kirche
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-29 18:28 ` Sébastien Kirche
@ 2005-03-29 18:50 ` Reiner Steib
2005-03-30 9:16 ` Sébastien Kirche
0 siblings, 1 reply; 18+ messages in thread
From: Reiner Steib @ 2005-03-29 18:50 UTC (permalink / raw)
On Tue, Mar 29 2005, Sébastien Kirche wrote:
> Well i don't actually ask for such a personal favor... And surely there is
> also some other features that i could find useful.
>
> Instead maybe you could tell me a recipe to update Emacs cvs with Gnus cvs ?
> I have already a local checkout of Emacs that i update/build regularly. I
> could also checkout Gnus. Then ?
Install Gnus (form CVS) and make sure that it's lisp directory
precedes .../emacs/22*/lisp/gnus/ from Emacs in `load-path'.
> I could patch emacs/lisp/gnus with gnus/lisp directory and so on ? Maybe you
> have a batch script for such update ?
http://theotp1.physik.uni-ulm.de/~ste/comp/emacs/gnus/Gnus-5-11.sh is
the script that I have used to install Gnus 5.10.6 in Emacs' CVS. But
I don't use it anymore because the merging is done semi-automatically
by Miles Bader (using his arch repository).
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-29 18:50 ` Reiner Steib
@ 2005-03-30 9:16 ` Sébastien Kirche
2005-03-30 12:07 ` Reiner Steib
0 siblings, 1 reply; 18+ messages in thread
From: Sébastien Kirche @ 2005-03-30 9:16 UTC (permalink / raw)
Le 29 Mar 2005, Reiner Steib vraute :
> > Instead maybe you could tell me a recipe to update Emacs cvs with Gnus
> > cvs ? I have already a local checkout of Emacs that i update/build
> > regularly. I could also checkout Gnus. Then ?
>
> Install Gnus (form CVS) and make sure that it's lisp directory
> precedes .../emacs/22*/lisp/gnus/ from Emacs in `load-path'.
It's ok. I used
./configure --with-emacs --with-lispdir=/Users/seki/.elisp/gnus \
--with-etcdir=/Users/seki/.elisp/gnus/etc
Then make / make install. It just failed to fetch the faq as direct cvs
access does not function from my company network.
> > I could patch emacs/lisp/gnus with gnus/lisp directory and so on ? Maybe
> > you have a batch script for such update ?
>
> http://theotp1.physik.uni-ulm.de/~ste/comp/emacs/gnus/Gnus-5-11.sh is
> the script that I have used to install Gnus 5.10.6 in Emacs' CVS. But
> I don't use it anymore because the merging is done semi-automatically
> by Miles Bader (using his arch repository).
As the separate Gnus installation is working, I might not need that script.
Thank you anyway.
--
Sébastien Kirche
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 9:16 ` Sébastien Kirche
@ 2005-03-30 12:07 ` Reiner Steib
2005-03-30 13:00 ` Sébastien Kirche
0 siblings, 1 reply; 18+ messages in thread
From: Reiner Steib @ 2005-03-30 12:07 UTC (permalink / raw)
On Wed, Mar 30 2005, Sébastien Kirche wrote:
> Then make / make install. It just failed to fetch the faq as direct cvs
> access does not function from my company network.
Oops. This should not happen. I will see how I can fix that.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 12:07 ` Reiner Steib
@ 2005-03-30 13:00 ` Sébastien Kirche
2005-03-30 14:12 ` Reiner Steib
0 siblings, 1 reply; 18+ messages in thread
From: Sébastien Kirche @ 2005-03-30 13:00 UTC (permalink / raw)
Le 30 Mar 2005, Reiner Steib a formulé :
> > It just failed to fetch the faq as direct cvs access does not function
> > from my company network.
>
> Oops. This should not happen. I will see how I can fix that.
I though it was known...
BTW it failed twice (same reason - cvs checkout time-out):
- at end of the configure script
- with make install when copying the files
--
Sébastien Kirche
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 13:00 ` Sébastien Kirche
@ 2005-03-30 14:12 ` Reiner Steib
2005-03-30 14:48 ` Sébastien Kirche
2005-03-30 15:06 ` Christophe Cuq
0 siblings, 2 replies; 18+ messages in thread
From: Reiner Steib @ 2005-03-30 14:12 UTC (permalink / raw)
On Wed, Mar 30 2005, Sébastien Kirche wrote:
> Le 30 Mar 2005, Reiner Steib a formulé :
>
>> > It just failed to fetch the faq as direct cvs access does not function
>> > from my company network.
>>
>> Oops. This should not happen. I will see how I can fix that.
>
> I though it was known...
No, the generation of gnus-faq.texi is new. I think what happened is
that the timestamp of xml2texi.sh and/or xml2texi.scm was newer than
gnus-faq.texi. As gnus-faq.texi is distributed with Gnus CVS and
tarballs, fetching the FAQ from sourceforge shouldn't happen unless
you use "make gnus-faq-full-update".
> BTW it failed twice (same reason - cvs checkout time-out):
> - at end of the configure script
> - with make install when copying the files
Could you try the following patch (you must re-run configure
afterwards) and report back?
--8<---------------cut here---------------start------------->8---
--- Makefile.in 30 Mar 2005 12:33:27 -0000 6.29.2.6
+++ Makefile.in 30 Mar 2005 14:07:20 -0000
@@ -84,7 +84,7 @@
fi
mv $(REFCARD).pdf $@
-gnus-faq-full-update: gnus-faq-clean gnus-faq.texi
+gnus-faq-full-update: gnus-faq-clean gnus-faq-texi
gnus-faq.xml:
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gnus \
@@ -93,7 +93,7 @@
{ echo "Update of $@ failed."; : rm $@.tmp; exit 1; }
mv $@.tmp $@
-gnus-faq.texi: gnus-faq.xml xml2texi.sh xml2texi.scm
+gnus-faq-texi: gnus-faq.xml xml2texi.sh xml2texi.scm
./xml2texi.sh $< $@.tmp
@echo
# FIXME: This should be done in xml2texi.scm or gnus-faq.xml should be
--8<---------------cut here---------------end--------------->8---
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 14:12 ` Reiner Steib
@ 2005-03-30 14:48 ` Sébastien Kirche
2005-03-30 15:41 ` Reiner Steib
2005-03-30 15:06 ` Christophe Cuq
1 sibling, 1 reply; 18+ messages in thread
From: Sébastien Kirche @ 2005-03-30 14:48 UTC (permalink / raw)
Le 30 Mar 2005, Reiner Steib a dit :
> Could you try the following patch (you must re-run configure afterwards)
> and report back?
configure and make install seem ok now.
Thanks.
--
Sébastien Kirche
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 14:12 ` Reiner Steib
2005-03-30 14:48 ` Sébastien Kirche
@ 2005-03-30 15:06 ` Christophe Cuq
2005-03-30 15:36 ` Reiner Steib
1 sibling, 1 reply; 18+ messages in thread
From: Christophe Cuq @ 2005-03-30 15:06 UTC (permalink / raw)
Cc: christophe
Reiner Steib <reinersteib+from-uce@imap.cc> writes:
> No, the generation of gnus-faq.texi is new. I think what happened is
> that the timestamp of xml2texi.sh and/or xml2texi.scm was newer than
> gnus-faq.texi. As gnus-faq.texi is distributed with Gnus CVS and
> tarballs, fetching the FAQ from sourceforge shouldn't happen unless
> you use "make gnus-faq-full-update".
I had a problem this morning, not with a timeout, but with the
password to connect to cvs (on freshly cvs retrieved gnus) :
,----
| cd texi && make EMACS="emacs" all
| cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gnus \
| co -p gnus-faq/src/gnus-faq.xml > gnus-faq.xml.tmp
| cvs checkout: cannot find password
| cvs [checkout aborted]: use "cvs login" to log in first
| make[1]: *** [gnus-faq.xml] Error 1
| make: *** [info] Error 2
`----
And I am unable to understand what to do to correct it.
Does your patch correct that problem ?
--
CHC
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 15:06 ` Christophe Cuq
@ 2005-03-30 15:36 ` Reiner Steib
2005-03-30 16:06 ` Christophe Cuq
0 siblings, 1 reply; 18+ messages in thread
From: Reiner Steib @ 2005-03-30 15:36 UTC (permalink / raw)
On Wed, Mar 30 2005, Christophe Cuq wrote:
> Does your patch correct that problem ?
Obviously I don't have access to _your_ system, so at best I can
assume that it fixes the problem.
What's wrong with trying? ;-)
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 14:48 ` Sébastien Kirche
@ 2005-03-30 15:41 ` Reiner Steib
2005-03-30 16:06 ` Christophe Cuq
0 siblings, 1 reply; 18+ messages in thread
From: Reiner Steib @ 2005-03-30 15:41 UTC (permalink / raw)
On Wed, Mar 30 2005, Sébastien Kirche wrote:
> Le 30 Mar 2005, Reiner Steib a dit :
>
>> Could you try the following patch (you must re-run configure afterwards)
>> and report back?
>
> configure and make install seem ok now.
Committed (to trunk and v5-10). Thanks.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 15:36 ` Reiner Steib
@ 2005-03-30 16:06 ` Christophe Cuq
0 siblings, 0 replies; 18+ messages in thread
From: Christophe Cuq @ 2005-03-30 16:06 UTC (permalink / raw)
Cc: christophe
Reiner Steib <reinersteib+from-uce@imap.cc> writes:
> Obviously I don't have access to _your_ system, so at best I can
> assume that it fixes the problem.
A problem on _my_ system ? Uh.
As of this morning and the change in the configure/make process on
cvs-gnus with trying to fetch the gnus-faq I never had any problem
with cvs-gnus (I use it since, hum, gnus 5.6 or 5.7 I think).
And I don't know how to fix the cvs password problem to fetch the
faq (that never arrised before the change) reported by the log of
./configure && make I posted.
It's not /my/ change :)
> What's wrong with trying? ;-)
Nothing at all, just time to apply/test it :)
--
CHC
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 15:41 ` Reiner Steib
@ 2005-03-30 16:06 ` Christophe Cuq
2005-03-30 16:22 ` Christophe Cuq
0 siblings, 1 reply; 18+ messages in thread
From: Christophe Cuq @ 2005-03-30 16:06 UTC (permalink / raw)
Cc: christophe
Reiner Steib <reinersteib+from-uce@imap.cc> writes:
> Committed (to trunk and v5-10). Thanks.
I'll do a new cvs to try.
--
CHC
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-30 16:06 ` Christophe Cuq
@ 2005-03-30 16:22 ` Christophe Cuq
0 siblings, 0 replies; 18+ messages in thread
From: Christophe Cuq @ 2005-03-30 16:22 UTC (permalink / raw)
Cc: christophe
Christophe Cuq <christophe@cuq.org> writes:
> I'll do a new cvs to try.
And it works like a charm. Many thanks for your support :)
--
CHC
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BBDB and EUDC/LDAP
2005-03-29 14:59 ` David S. Goldberg
2005-03-29 15:17 ` Sébastien Kirche
@ 2005-06-08 23:42 ` Sébastien Kirche
1 sibling, 0 replies; 18+ messages in thread
From: Sébastien Kirche @ 2005-06-08 23:42 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2005-06-08 23:42 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-29 14:48 BBDB and EUDC/LDAP Sébastien Kirche
2005-03-29 14:59 ` David S. Goldberg
2005-03-29 15:17 ` Sébastien Kirche
2005-03-29 15:54 ` Reiner Steib
2005-03-29 18:28 ` Sébastien Kirche
2005-03-29 18:50 ` Reiner Steib
2005-03-30 9:16 ` Sébastien Kirche
2005-03-30 12:07 ` Reiner Steib
2005-03-30 13:00 ` Sébastien Kirche
2005-03-30 14:12 ` Reiner Steib
2005-03-30 14:48 ` Sébastien Kirche
2005-03-30 15:41 ` Reiner Steib
2005-03-30 16:06 ` Christophe Cuq
2005-03-30 16:22 ` Christophe Cuq
2005-03-30 15:06 ` Christophe Cuq
2005-03-30 15:36 ` Reiner Steib
2005-03-30 16:06 ` Christophe Cuq
2005-06-08 23:42 ` Sébastien Kirche
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).