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 the Gnus manual. If you download the git version (EmacsFromGit), the FAQs are in the file doc/misc/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 ".*" "mail.private.thegoodfriend")
        (subject "[SPAM]" "mail.spam")
        (to ".*my@privateaddress\\.de" "mail.private.misc")
        (to "me@mycompany\\.de"
            (from ".* <?\\(.*\\)" "\\1"))
 |  groups     | summary              |
 |    buffer   |      buffer          |
 |  message display                   |
 |  very large: want to see           |
 |     it all ....                    |
       (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?

Please see the updated EUDC Wiki page. Many of the below bug fixes have been committed to Emacs 25.

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:
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 @@
-                          "-t"         ; Write values to temp files
+                          "-tt"                ; Write values to temp files
+                          "-LL"
       (insert "\n")
@@ -584,7 +585,7 @@
          (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))
  • 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 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