From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16186 Path: news.gmane.org!not-for-mail From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Newsgroups: gmane.emacs.gnus.user Subject: Re: How to set up multiple username on same IMAP server? Date: Mon, 01 Apr 2013 03:55:43 +0000 Message-ID: <876206lxa8.fsf@riseup.net> References: <852a05d7-5d39-4eb4-88f9-8a685c69ee46@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364788549 11012 80.91.229.3 (1 Apr 2013 03:55:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Apr 2013 03:55:49 +0000 (UTC) To: info-gnus-english-mXXj517/zsQ@public.gmane.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org-mXXj517/zsQ@public.gmane.org Mon Apr 01 05:56:17 2013 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UMVqy-0007Nw-6a for gegu-info-gnus-english@m.gmane.org; Mon, 01 Apr 2013 05:56:16 +0200 Original-Received: from localhost ([::1]:32986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMVqZ-0003j5-RC for gegu-info-gnus-english@m.gmane.org; Sun, 31 Mar 2013 23:55:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMVqT-0003ie-2x for info-gnus-english-mXXj517/zsQ@public.gmane.org; Sun, 31 Mar 2013 23:55:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMVqL-0006gW-IV for info-gnus-english-mXXj517/zsQ@public.gmane.org; Sun, 31 Mar 2013 23:55:44 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMVqL-0006gQ-BY for info-gnus-english-mXXj517/zsQ@public.gmane.org; Sun, 31 Mar 2013 23:55:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UMVqi-0007IK-4j for info-gnus-english-mXXj517/zsQ@public.gmane.org; Mon, 01 Apr 2013 05:56:00 +0200 Original-Received: from exit-01c.noisetor.net ([173.254.216.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Apr 2013 05:56:00 +0200 Original-Received: from wgreenhouse by exit-01c.noisetor.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Apr 2013 05:56:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 86 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: exit-01c.noisetor.net X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:wupJrsbZ5yqjHdhnvwPNmHf3i3Y= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.gnus.user:16186 Archived-At: Hello Hideyuki, Hideyuki Ito writes: > Hi, > > I'd like to set up multiple username(usreacount) on same IMAP server > (imap.gmail.com). > > Could you tell me how to write it in .gnus.el and .authinfo ? > > > Currently, I'd written them as > > (setq gnus-select-method '(nnnil) > gnus-secondary-select-methods > `( > (nnimap "FOO" > (nnimap-address "imap.gmail.com") > (nnimap-server-port 993) > (nnimap-authinfo-file "~/.authinfo") > (nnimap-stream ssl) > (nnir-search-engine imap)) > (nnimap "BAR" > (nnimap-inbox "INBOX") > (nnimap-address "imap.gmail.com") > (nnimap-server-port 993) > (nnimap-authinfo-file "~/.authinfo") > (nnimap-stream ssl) > (nnir-search-engine imap)) > )) > > I'd like to use username "foo" and password "passfoo" on Foo IMAP > connection and username "bar" and password "passbar" on BAR IMAP > connection. What elisp descriptions are required? > > Thanks, Try this: ~/.gnus.el (setq gnus-select-method '(nnnil) gnus-secondary-select-methods '( (nnimap "FOO" (nnimap-address "imap.gmail.com") (nnimap-user "foo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org")) (nnimap "BAR" (nnimap-address "imap.gmail.com") (nnimap-user "bar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org")))) ;; nnimap-server-port, nnimap-authinfo-file, nnimap-stream, and ;; nnir-search-engine are at defaults and may safely be omitted ~/.authinfo machine imap.gmail.com login foo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org port imaps password foopass machine smtp.gmail.com login foo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org port 465 password foopass machine imap.gmail.com login bar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org port imaps password barpass machine smtp.gmail.com login bar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org port 465 password barpass > > -- > Hideyuki Ito > An Absolute Beginner I hope you enjoy Gnus! For sending, you will need to either use a sendmail application capable of choosing SMTP accounts based on the From: header, such as msmtp ( http://www.emacswiki.org/emacs/GnusMSMTP ), or configure Emacs's built-in smtpmail.el according to one of the methods described in http://www.emacswiki.org/emacs/MultipleSMTPAccounts. I am currently happy with using smtpmail.el for multiple accounts, but it does require some more configuration to be useful. Best, Will -- BOFH excuse #346: Your/our computer(s) had suffered a memory leak, and we are waiting for them to be topped up.