From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87332 Path: news.gmane.org!.POSTED!not-for-mail From: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: How do I add several imap accounts on the same server? Date: Sun, 15 Jan 2017 23:27:38 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87fukkez6t.fsf@koldfront.dk> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1484519351 8316 195.159.176.226 (15 Jan 2017 22:29:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Jan 2017 22:29:11 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/26.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M35552@lists.math.uh.edu Sun Jan 15 23:29:04 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cStI9-00005p-Pw for ding-account@gmane.org; Sun, 15 Jan 2017 23:28:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cStHP-0008Uo-2O; Sun, 15 Jan 2017 16:28:03 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cStHM-0008U3-8e for ding@lists.math.uh.edu; Sun, 15 Jan 2017 16:28:00 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cStHK-0007OW-6i for ding@lists.math.uh.edu; Sun, 15 Jan 2017 16:28:00 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1cStHH-0000RJ-5M for ding@gnus.org; Sun, 15 Jan 2017 23:27:55 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cStH7-0003Gu-Pq for ding@gnus.org; Sun, 15 Jan 2017 23:27:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@blaine.gmane.org OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87332 Archived-At: joakim@verona.se writes: > I read several imap accounts with gnus already. > > Now I would like to add another mail account from the same server, and I > realize I dont know how to do it. The first thing to realize is that the name of the nnimap server can be independent of the hostname, and it is what is used to look up login+password in authinfo. So you can define your two accounts like this: (setq gnus-secondary-select-methods '((nnimap "one-account" (nnimap-address "mailserver")) (nnimap "other-account" (nnimap-address "mailserver")))) and then in your .authinfo.gpg, you'll have: machine one-account login firstlogin password firstpassword machine other-account login secondlogin password secondpassword This should give you nnimap+one-account and nnimap+other-account in Gnus, accessing the two accounts on the same server. (Exact syntax untested.) Hope this helps! Best regards, Adam -- "Do I really want to set this in Denmark?" Adam Sjøgren asjo@koldfront.dk