From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Gnus: Error on setting up IMAP accounts Date: Fri, 28 Oct 2011 22:49:40 +0200 Message-ID: <87ipn8c04b.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319835011 29101 80.91.229.12 (28 Oct 2011 20:50:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2011 20:50:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 28 22:50:07 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 1RJtNN-00019U-RS for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 22:50:06 +0200 Original-Received: from localhost ([::1]:33904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJtNN-0006lC-D3 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Oct 2011 16:50:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJtNH-0006l5-FW for help-gnu-emacs@gnu.org; Fri, 28 Oct 2011 16:50:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJtNF-0007z0-Vx for help-gnu-emacs@gnu.org; Fri, 28 Oct 2011 16:49:59 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJtNF-0007yg-Fn for help-gnu-emacs@gnu.org; Fri, 28 Oct 2011 16:49:57 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RJtND-00015G-9L for help-gnu-emacs@gnu.org; Fri, 28 Oct 2011 22:49:55 +0200 Original-Received: from 91-67-169-145-dynip.superkabel.de ([91.67.169.145]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Oct 2011 22:49:55 +0200 Original-Received: from tassilo by 91-67-169-145-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Oct 2011 22:49:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 74 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91-67-169-145-dynip.superkabel.de User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:OVYHnNxdDCxdN/bAo/ch38ia24s= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:82693 Archived-At: Marius Hofert writes: Hi Marius, > 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: > > 1) installed Gnus 5.10.10 (in ~/email) The gnus version included in emacs 23.3 is probably newer than that version. > 2) ~/.emacs: > > (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/")) That's not needed if you simply use the bundled version. > 3) ~/.gnus.el: > > (setq gnus-select-method '(nntp "news.gmane.org")); Question 1: what > ;;can I put here if I don't want *any* news? (setq gnus-select-method '(nnnil)) > (setq user-mail-address "my.name@dep.uni.edu") > (setq user-full-name "My Name") > > ;; setup IMAP accounts > (setq 'gnus-secondary-select-methods ^ That quote is wrong. > '((nnimap "my.name@dep.uni.edu"; 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 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? > When starting Gnus via M-x gnus, I obtain: > "byte-code: Error in ~/.gnus: symbolp" > => Question: What is wrong? See above. > PS: As references, I used: > http://www.emacswiki.org/emacs/GnusTutorial#toc1 > http://www.emacswiki.org/emacs/GnusGmail 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). Bye, Tassilo -- (What the world needs (I think) is not (a Lisp (with fewer parentheses)) but (an English (with more.))) Brian Hayes, http://tinyurl.com/3y9l2kf