From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Re: Gnus: Error on setting up IMAP accounts Date: Sat, 29 Oct 2011 09:58:07 +0200 Message-ID: <0086A532-E15A-4BDF-B4E4-9F5F9EB7682F@math.ethz.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319875109 10842 80.91.229.12 (29 Oct 2011 07:58:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2011 07:58:29 +0000 (UTC) Cc: Emacs help To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 29 09:58:24 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RK3o7-0003q3-4q for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 09:58:23 +0200 Original-Received: from localhost ([::1]:50116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK3o6-0000bg-IE for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 03:58:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK3ny-0000bQ-3j for help-gnu-emacs@gnu.org; Sat, 29 Oct 2011 03:58:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK3nu-0003rS-2d for help-gnu-emacs@gnu.org; Sat, 29 Oct 2011 03:58:14 -0400 Original-Received: from edge20.ethz.ch ([82.130.99.26]:43747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK3nt-0003rN-Qf for help-gnu-emacs@gnu.org; Sat, 29 Oct 2011 03:58:10 -0400 Original-Received: from CAS10.d.ethz.ch (172.31.38.210) by edge20.ethz.ch (82.130.99.26) with Microsoft SMTP Server (TLS) id 14.1.339.1; Sat, 29 Oct 2011 09:58:03 +0200 Original-Received: from 80-218-247-21.dclient.hispeed.ch (80.218.247.21) by cas10.d.ethz.ch (172.31.38.210) with Microsoft SMTP Server (TLS) id 14.1.339.1; Sat, 29 Oct 2011 09:58:08 +0200 X-Mailer: Apple Mail (2.1251.1) X-Originating-IP: [80.218.247.21] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.130.99.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82700 Archived-At: >> I have trouble setting up Gnus (mail- + newsreader) on GNU Emacs 23.3 >> (on Mac OS X 10.7.2) correctly. Here is what I did so far: >>=20 >> 1) installed Gnus 5.10.10 (in ~/email) >=20 > The gnus version included in emacs 23.3 is probably newer than that > version. >=20 >> 2) ~/.emacs: >>=20 >> (setq load-path (cons (expand-file-name "~/email/lisp") load-path)) >> (require 'gnus-load) >> (require 'info) >> (if (featurep 'xemacs) >> (add-to-list 'Info-directory-list "~/email/texi/") >> (add-to-list 'Info-default-directory-list "~/email/texi/")) >=20 > That's not needed if you simply use the bundled version. Hi Tassilo, thanks a lot for your help, it's highly appreciated.=20 That's good to know. I removed the above code from .emacs. Now Gnus = starts with a golden logo (instead of a white one as before) :-) >=20 >> 3) ~/.gnus.el: >>=20 >> (setq gnus-select-method '(nntp "news.gmane.org")); Question 1: what = can I put here if I don't want *any* news? >=20 > (setq gnus-select-method '(nnnil)) Thanks >=20 >> (setq user-mail-address "address@hidden") >> (setq user-full-name "My Name") >> ;; setup IMAP accounts >> (setq 'gnus-secondary-select-methods > ^ > That quote is wrong. Oh wow... great, thanks a ton! >=20 >> '((nnimap "address@hidden"; primary email account >> (nnimap-address "mail.uni.edu"); mail server address >> (nnimap-server-port 993); port >> (nnimap-authenticator login); authentication method >> (nnir-search-engine imap); enable searching mails >> (nnimap-stream ssl); use ssl >> (nnimap-logout-timeout 1.0); if a connection to an IMAP = server can't be closed, force close after 1s >=20 > Why do you configure that much? Is that really required? I guess, = no. > Recent Gnus use SSL or TLS automatically if possible, the nnir search > engine is set to IMAP automatically, too, and why specifying a logout > timeout? I found it in the references I gave. I didn't know that Gnus already = uses these defaults.=20 The timeout is suggested at the bottom of = http://gnus.org/manual/gnus_208.html=20 >=20 >> When starting Gnus via M-x gnus, I obtain: >> "byte-code: Error in ~/.gnus: symbolp" >> =3D> Question: What is wrong? >=20 > See above. >=20 >> PS: As references, I used: >> http://www.emacswiki.org/emacs/GnusTutorial#toc1 >> http://www.emacswiki.org/emacs/GnusGmail >=20 > These wiki sites can't keep up with the enormous development speed = Gnus > has had lately. Better use the info docs, because that refer to the > actual gnus version you are using (also bundled with emacs, C-h i m = gnus > RET). Good to know, thanks. As a new user, I typically go to the wiki pages = for get help and background information. I probably should change this = :-) Here is what worked/didn't work: 1) I now use the "internal" version of Gnus (so no entry in .emacs and = no ~/email) 2) ~/.gnus.el is set up as you suggested: (setq gnus-select-method '(nnnil)) (setq user-mail-address "address@hidden") (setq user-full-name "My Name") (setq gnus-secondary-select-methods '((nnimap "address@hidden"; primary email account (nnimap-address "mail.uni.edu"); mail server address (nnimap-server-port 993); port (nnimap-authenticator login); authentication method ) (nnimap "address@googlemail.com"; secondary email account (nnimap-address "imap.googlemail.com"); mail server address (nnimap-server-port 993); port (nnimap-authenticator login); authentication method )) ) 3) ~/.authinfo (as before): machine mail.uni.edu login mylogin port 993 machine imap.googlemail.com login address@googlemail.com port 993 4) If I start Gnus with M-x gnus, I see: imap: Connecting to mail.uni.edu # I see this for about 2min; can't do = anything else with emacs during that time imap: Connecting to imap.googlemail.com # I see this for as long as I = watch... The only chance to proceed is to hit C-g=20 If I hit C-g I obtain the *Group* buffer saying: g: nndoc+gnus-help:gnus-help =46rom there I can send emails via both accounts. But I don't = see/receive new emails. Q1: Does this have to do with "subscribing to a mailbox"? Q2: Why can I send emails without being asked for a password? Q3: On http://www.emacswiki.org/emacs/GnusGmail it is described how to = use Gmail's SMTP server: (setq message-send-mail-function 'smtpmail-send-it smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)) smtpmail-auth-credentials '(("smtp.gmail.com" 587 = "username@gmail.com" nil)) smtpmail-default-smtp-server "smtp.gmail.com" smtpmail-smtp-server "smtp.gmail.com" smtpmail-smtp-service 587 smtpmail-local-domain "yourcompany.com") Is this required?=20 Q4: Considering the output of *Messages* (failures), what am I missing? Reading /Users/myuser/.newsrc.eld...=20 Reading active file via nnnil...done Reading active file from address@uni.edu via nnimap... Opening nnimap server on address@uni.edu... imap: Connecting to mail.uni.edu...failed Opening nnimap server on address@uni.edu...failed Reading active file from address@googlemail.com via nnimap... Opening nnimap server on address@googlemail.com... imap: Connecting to imap.googlemail.com...failed Opening nnimap server on address@googlemail.com...failed Opening nnimap server on address@uni.edu... Denied server Opening nnimap server on address@uni.edu...failed Opening nnimap server on address@googlemail.com... Denied server Opening nnimap server on address@googlemail.com...failed No new newsgroups Checking new news... Opening nndoc server on gnus-help...done Checking new news...done Q5: I have a file contacts.org containing all contacts in = "org-contacts"-form. My .emacs contains: (setq load-path (cons "~/.emacs.d/contacts" load-path)) (require 'org-contacts) (custom-set-variables '(org-contacts-files '("~/org/contacts.org"))) [I found this here: = http://www.mail-archive.com/emacs-orgmode@gnu.org/msg37143.html] As mentioned on http://julien.danjou.info/org-contacts.html, this allows = for completion of addresses. I tried it, but I can't complete addresses = defined in contacts.org. What else do I have to specify? Cheers, Marius