From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8617 Path: news.gmane.org!not-for-mail From: CHENG Gao Newsgroups: gmane.emacs.gnus.user Subject: Suggestion: Describe in Gnus manuall on how to allow multiple IMAP accounts in same server Date: Sat, 27 Jan 2007 18:55:44 +0800 Organization: cyberhut.org Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1169895380 13636 80.91.229.12 (27 Jan 2007 10:56:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 Jan 2007 10:56:20 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Jan 27 11:56:18 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 1HAlEG-00027z-Nb for gegu-info-gnus-english@m.gmane.org; Sat, 27 Jan 2007 11:56:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAlEG-0000Xh-8f for gegu-info-gnus-english@m.gmane.org; Sat, 27 Jan 2007 05:56:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HAlEE-0000Xc-H0 for info-gnus-english@gnu.org; Sat, 27 Jan 2007 05:56:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HAlEC-0000XP-3S for info-gnus-english@gnu.org; Sat, 27 Jan 2007 05:56:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HAlEB-0000XM-Ti for info-gnus-english@gnu.org; Sat, 27 Jan 2007 05:56:11 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HAlEB-0001RE-ED for info-gnus-english@gnu.org; Sat, 27 Jan 2007 05:56:11 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HAlDz-0001H0-E6 for info-gnus-english@gnu.org; Sat, 27 Jan 2007 11:55:59 +0100 Original-Received: from 222.94.199.244 ([222.94.199.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Jan 2007 11:55:59 +0100 Original-Received: from chenggao by 222.94.199.244 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Jan 2007 11:55:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 222.94.199.244 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (darwin) Cancel-Lock: sha1:dLm8mKsCf1zrg+45ifHyb1n1JNE= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:8617 Archived-At: 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