From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74171 Path: news.gmane.org!not-for-mail From: Tommy Kelly Newsgroups: gmane.emacs.gnus.general Subject: nnimap and multiple accounts on the same server Date: Fri, 19 Nov 2010 23:30:55 -0600 Message-ID: References: <87vd3tnz6v.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1290261212 14897 80.91.229.12 (20 Nov 2010 13:53:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Nov 2010 13:53:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22535@lists.math.uh.edu Sat Nov 20 14:53:28 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJnsc-0005wL-Po for ding-account@gmane.org; Sat, 20 Nov 2010 14:53:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PJnrp-0007hH-1v; Sat, 20 Nov 2010 07:52:37 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PJg6O-0005fs-Tu for ding@lists.math.uh.edu; Fri, 19 Nov 2010 23:35:08 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PJg6M-00081v-EX for ding@lists.math.uh.edu; Fri, 19 Nov 2010 23:35:08 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PJg6L-0002mO-00 for ; Sat, 20 Nov 2010 06:35:05 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PJg6K-0007JR-Dq for ding@gnus.org; Sat, 20 Nov 2010 06:35:04 +0100 Original-Received: from cpe-70-112-150-104.austin.res.rr.com ([70.112.150.104]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Nov 2010 06:35:04 +0100 Original-Received: from tommy.kelly by cpe-70-112-150-104.austin.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Nov 2010 06:35:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpe-70-112-150-104.austin.res.rr.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:qjyrwz7iG15mbfGozA2ZNL0ZMIs= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74171 Archived-At: I have a personal gmail account and one under Google Apps. I'd like to read both with nnimap in Gnus. There's a heap of advice on this on google but nothing I can get to work sensibly. What I have at the moment is the simplest setup involving both my .gnus and .authinfo: In my .gnus: (setq gnus-secondary-select-methods '( (nnimap "work" (nnimap-stream ssl) (nnimap-address "imap.gmail.com") (nnimap-server-port 993) ) (nnimap "personal" (nnimap-stream ssl) (nnimap-address "imap.gmail.com") (nnimap-server-port 993) ) ) ) And in my .authinfo: machine work login me@mydomain.com password my_gapps_password port 993 machine personal login me@gmail.com password my_gmail_password port 993 That's based on my reading[1] that the current authentication mechanism allows the machines to be described in .authinfo using the identifier (in my case "work" or "personal") instead of the actual server itself (in my case "imap.gmail.com"). HOWEVER, the above doesn't work. When I run gnus it acts as if it cannot find the authentication info and prompts me for logins and passwords. If I provide them, I get access to the two accounts just fine. But I'd like to have it authenticate automatically. I know the authentication works if I replace "work" or "personal" with "imap.gmail.com" but of course then I can't have the two separate accounts since they're both on the same server. Any help appreciated. thanks, Tommy [1] e.g. here http://josefsson.org/nnimap/nnimap.html#SEC29