Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: CHENG Gao <chenggao@gmail.com>
To: info-gnus-english@gnu.org
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	[thread overview]
Message-ID: <m2sldw7n7z.fsf@cyberhut.org> (raw)

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

             reply	other threads:[~2007-01-27 10:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-27 10:55 CHENG Gao [this message]
     [not found] <mailman.3660.1169895375.2155.info-gnus-english@gnu.org>
2007-01-28  6:51 ` Tim X
2007-01-28  9:15   ` Reiner Steib
2007-01-28  9:40     ` CHENG Gao
2007-01-28 11:00     ` CHENG Gao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2sldw7n7z.fsf@cyberhut.org \
    --to=chenggao@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).