From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8620 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.gnus.user Subject: Re: Suggestion: Describe in Gnus manuall on how to allow multiple IMAP accounts in same server Date: Sun, 28 Jan 2007 17:51:24 +1100 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <8764ar8x03.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169970028 10225 80.91.229.12 (28 Jan 2007 07:40:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Jan 2007 07:40:28 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Jan 28 08:40:25 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HB4eF-0007za-UW for gegu-info-gnus-english@m.gmane.org; Sun, 28 Jan 2007 08:40:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HB4eF-0000q9-Kf for gegu-info-gnus-english@m.gmane.org; Sun, 28 Jan 2007 02:40:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sn-xt-sjc-03!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) Cancel-Lock: sha1:AhGztbl0CYgSsZm2FRDce7a5Tr8= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 50 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78803 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 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: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:8620 Archived-At: CHENG Gao writes: > It's not clear in Gnus manual how to use multiple accounts in same IMAP > server. My company emails are hosted by virtual hosting server, and I > have my personal account while at the same time I need read some common > email accounts. I think it's common for many users. > > I struggled for some time and found the solution. > > Say nnimap address is imap.mysite.com > Two accounts: one@mysite.com & other@mysite.com > > Two .authinfo files are needed to seperate the auth otherwise only the > first one with imap address imap.mysite.com is used for authentication > of both accounts. > > So the setting should be: > (nnimap "one-mysite" > (nnimap-server-port 143) > (nnimap-address "imap.mysite.com") > (nnimap-list-pattern ("INBOX" "mail/*")) > (nnimap-authinfo-file "~/.emacs.d/.authinfo")) > (nnimap "other-mysite" > (nnimap-server-port 143) > (nnimap-address "imap.mysite.com") > (nnimap-list-pattern ("INBOX" "mail/*")) > (nnimap-authinfo-file "~/.emacs.d/.authinfo2")) > > I think I need not bother to demonstrate two .authinfo files here. > > The right location to add this is `nnimap-authinfo-file under "6.5 IMAP" > in Gnus manual, something like: > > If you have more than one account under same IMAP server, you need use > one .authinfo for each account, and explicitly configure each imap > account to point to them. blah blah > Can I suggest you write this information up and submit it as an addition/update to the gnus manual. It is only through users making submissions of this type we can hope to see a positive evolution of the gnus manual. alternatively, but not as good, you could add this information to a relevant page in the emacs wiki (http://www.emacswiki.org/) regards, Tim -- tcross (at) rapttech dot com dot au