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 11:45:48 +0200 Message-ID: <102BEDB3-40CC-4D9D-8D74-B8859E5852B3@math.ethz.ch> References: <0086A532-E15A-4BDF-B4E4-9F5F9EB7682F@math.ethz.ch> <87r51wp6cb.fsf@thinkpad.tsdh.de> 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 1319881565 13933 80.91.229.12 (29 Oct 2011 09:46:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2011 09:46:05 +0000 (UTC) Cc: Emacs help To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 29 11:46:01 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 1RK5UG-0007tH-By for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 11:46:00 +0200 Original-Received: from localhost ([::1]:42239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK5UF-0005T2-4F for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Oct 2011 05:45:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK5U9-0005Se-Oa for help-gnu-emacs@gnu.org; Sat, 29 Oct 2011 05:45:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK5U7-0005r5-1Q for help-gnu-emacs@gnu.org; Sat, 29 Oct 2011 05:45:53 -0400 Original-Received: from edge10.ethz.ch ([82.130.75.186]:45071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK5U6-0005qH-BH for help-gnu-emacs@gnu.org; Sat, 29 Oct 2011 05:45:50 -0400 Original-Received: from CAS21.d.ethz.ch (172.31.51.111) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.1.339.1; Sat, 29 Oct 2011 11:45:46 +0200 Original-Received: from 80-218-247-21.dclient.hispeed.ch (80.218.247.21) by CAS21.d.ethz.ch (172.31.51.111) with Microsoft SMTP Server (TLS) id 14.1.339.1; Sat, 29 Oct 2011 11:45:48 +0200 In-Reply-To: <87r51wp6cb.fsf@thinkpad.tsdh.de> 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.75.186 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:82707 Archived-At: Dear Tassilo, thanks a lot. I minimalized "gnus-secondary-select-methods" as you suggested. I also = adjusted authinfo and put (org-contacts-gnus-insinuate) in .emacs. The connection to mail.uni.edu at startup works quite fast (about 1s), = but the I get asked "Buffer has a running process; kill it?" If I choose = yes, then "imap: Connecting to imap.googlemail.com..." appears (again, = for as long as I don't abort it with C-g). I also very briefly see = "error in process filter: Internal error, tag 4 status BAD code nil text = Command received in Invalid state." Reading /Users/myuser/.newsrc.eld... 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... Waiting for response from mail.uni.edu...done imap: Reconnecting with stream `starttls'... Opening STARTTLS connection to `mail.uni.edu:143'... Buffer has a running process; kill it? (y or n)y imap: Reconnecting with stream `starttls'...failed imap: Connecting to mail.uni.edu...done Parsing authinfo file `~/.authinfo'. imap: Authenticating to `mail.uni.edu' using `anonymous'... imap: Logging in anonymously... imap: Authenticating to `mail.uni.edu' using `anonymous'...failed Opening nnimap server on address@uni.edu...done 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... imap: Connecting to mail.uni.edu...failed Opening nnimap server on address@uni.edu...failed Opening nnimap server on address@googlemail.com... Denied server nnimap+address@googlemail.com 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 Also, the (org-contacts-gnus-insinuate) statement did not change = anything concerning the completion (I am in the "To" line and type "Us" = + TAB. I expect to get "User", but nothing happens), but that's = certainly not the major problem at the moment. Please let me know if you need more details. Cheers, Marius On 2011-10-29, at 10:09 , Tassilo Horn wrote: >=20 > Hi Marius, >=20 >> (setq gnus-select-method '(nnnil)) >> (setq user-mail-address "address@hidden") >> (setq user-full-name "My Name") >>=20 >> (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 >> )) >> ) >=20 > I'd probably start with just these gnus-secondary-s-m >=20 > '((nnimap "address@hidden" > (nnimap-address "mail.uni.edu")) > (nnimap "gmail" > (nnimap-address "..."))) >=20 > Most probably, that'll just work. Gnus will automatically determine > what's the most secure connection for the servers and use that. >=20 >> 3) ~/.authinfo (as before): >> machine mail.uni.edu login mylogin port 993 >> machine imap.googlemail.com login address@googlemail.com port 993 >=20 > Don't specify a port if not needed. And add a "force yes" as last = thing > in each line. >=20 >> 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 >=20 > Probably, because you say Gnus to use port 993 with SSL while the > servers prefer something else. As said, start with a minimal setup. >=20 >> 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? >=20 > You need to call >=20 > (org-contacts-gnus-insinuate) >=20 > in your ~/.emacs or ~/.gnus.el to make that working. >=20 > Bye, > Tassilo > --=20 > (What the world needs (I think) is not > (a Lisp (with fewer parentheses)) > but (an English (with more.))) > Brian Hayes, http://tinyurl.com/3y9l2kf