GnusQuestions

Last edit

Summary: Rückgängig gemacht auf den Stand vom 2013-08-24 11:21 UTC

Changed:

< :: ldap.el seems to be an alternative to EUCD, which relies on the binary ldapWikiModes. I will have to check this out. --HenrikHolmboe

to

> :: ldap.el seems to be an alternative to EUCD, which relies on the binary ldapsearch. I will have to check this out. --HenrikHolmboe

Changed:

< * Suumary: ldap.el (that I have on Gentoo linux shipped with emacs-21.4, not the ldap.el on the WikifiedEmacsLispList...) does not work natively, there are problems with it and changes in the way ldapWikiModes works since ldap.el was originally written
< * ldapWikiModes can wrap long lines so I use a wrapper script that gets rid of them called myldapWikiModes:

to

> * Suumary: ldap.el (that I have on Gentoo linux shipped with emacs-21.4, not the ldap.el on the WikifiedEmacsLispList...) does not work natively, there are problems with it and changes in the way ldapsearch works since ldap.el was originally written
> * ldapsearch can wrap long lines so I use a wrapper script that gets rid of them called myldapsearch:

Changed:

< ldapWikiModes $* | perl -p0e 's/\n //g'

to

> ldapsearch $* | perl -p0e 's/\n //g'

Changed:

< * I had to change the regexp and the command args to ldapWikiModes (actually myldapWikiModes wrapper)

to

> * I had to change the regexp and the command args to ldapsearch (actually myldapsearch wrapper)

Changed:

< ,@ldap-ldapWikiModes-args

to

> ,@ldap-ldapsearch-args

Changed:

< (setq ldap-ldapWikiModes-prog "myldapWikiModes")

to

> (setq ldap-ldapsearch-prog "myldapsearch")


Where to find the FAQs (frequently asked questions)

They are included with Gnus. Use C-h i m gnus RET to see Gnus’ info page. You can also see the list of questions on-line in Gnus manual (look for section 10.9 or so). If you download the CVS version ([[GnusCvs?]]), the FAQs are in the file gnus-faq.texi.

Some Newbie Questions of a long-time VM user

Many, many pieces of documentation are living in the web concerning Gnus. Funny, though, that they always seem to show the same thing. Currently I’m not so sure, whether I am just plain stupid, or the questions that I’ve got are too far from the real world. So I won’t open a new wiki page for the moment and instead collect them here.

 (setq nnmail-split-fancy
      '(|
        (from ".*agood@friendofmine.de" "mail.private.thegoodfriend")
        (subject "[SPAM]" "mail.spam")
        (to ".*my@privateaddress\\.de" "mail.private.misc")
        (to "me@mycompany\\.de"
            (from ".* <?\\(.*\\)@mycompany.de" "mail.office.\\1"))
        ("mail.inbox")
        ))
 +------------------------------------+
 |  groups     | summary              |
 |    buffer   |      buffer          |
 +------------------------------------+
 |  message display                   |
 |  very large: want to see           |
 |     it all ....                    |
 +------------------------------------+
    (gnus-add-configuration
     '(article
       (vertical 1.0
    	       (horizontal 8
    			 (group 20)
    			 (summary 1.0 point) )
    	       (horizontal 1.0
    			 (article 1.0)))))
  (setq gnus-select-method '(nnml ""))
and no secondary-select-method at all, but I feel it’s not right.

LDAP support?

I’m pondering the benefits of using Gnus for my mailer (and newsreader) over my current MUA. Is it possible to read and write to an existing addressbook using LDAP? I have read a little about EUCD, but I cant seem to find any good documentation about this. What I need is to have my mail and addressbook accessable via IMAP and LDAP, and BBDB seems to use its own format. Perhaps its even possible to use LDAP as a backend to BBDB? --HenrikHolmboe?

I don’t think such code exists. But look for ldap.el in the WikifiedEmacsLispList… Perhaps that helps?
ldap.el seems to be an alternative to EUCD, which relies on the binary ldapsearch. I will have to check this out. --HenrikHolmboe?
I am using EUDC with a MS LDAP server for email address completion. I have come accross a number of problems but now have it working:
  • Suumary: ldap.el (that I have on Gentoo linux shipped with emacs-21.4, not the ldap.el on the WikifiedEmacsLispList…) does not work natively, there are problems with it and changes in the way ldapsearch works since ldap.el was originally written
  • ldapsearch can wrap long lines so I use a wrapper script that gets rid of them called myldapsearch:
 
#!/bin/sh
ldapsearch $* | perl -p0e 's/\n //g'
  • I had to change the regexp and the command args to ldapsearch (actually myldapsearch wrapper)
diff -u /usr/share/emacs/21.4/lisp/net/ldap.el emacs/ldap.el
--- /usr/share/emacs/21.4/lisp/net/ldap.el      2006-04-05 15:20:28.000000000 +0100
+++ emacs/ldap.el       2006-06-01 11:44:29.000000000 +0100
@@ -568,7 +568,8 @@
                           buf
                           nil    
                           ,@arglist
-                          "-t"         ; Write values to temp files
+                          "-tt"                ; Write values to temp files
+                          "-LL"
                           ,@ldap-ldapsearch-args
                           ,@filter))
       (insert "\n")
@@ -584,7 +585,7 @@
                                               (end-of-line)
                                               (point))))
          (forward-line 1)
-         (while (looking-at "^\\(\\w*\\)[=:\t ]+\\(<[\t ]*file://\\)?\\(.*\\)$")
+         (while (looking-at "^\\(\\w*\\)[=:\t ]+\\(<[\t ]*file://\\)\\(.*\\)$")
            (setq name (match-string 1)
                  value (match-string 3))
            (save-excursion
  • Then setting the following gets it working for me (although I guess it might depend on how your site allocates names, mine uses “mail” “givenName” “name”):
(setq eudc-inline-expansion-format '("%s %s <%s>" givenName name email))
(setq eudc-inline-query-format '((name)
                                (givenName)
                                (givenName name)))
(setq ldap-ldapsearch-prog "myldapsearch")
  • Then in a mail program (I use mail started from vm) typing an incomplete name and M-x eudc-expand-inline (cast to your favourite keystroke) does the trick
  • I guess I should write this up as a separate page describing the set up in full….I found it quite an effort to see how to get ldap and eudc working. – MartinReed

See also: GnusBugsAndWorkarounds


CategoryGnus