Gnus development mailing list
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
To: ding@gnus.org
Subject: Re: How do I add several imap accounts on the same server?
Date: Sun, 15 Jan 2017 23:27:38 +0100	[thread overview]
Message-ID: <87fukkez6t.fsf@koldfront.dk> (raw)
In-Reply-To: <m38tqcwfdm.fsf@chopper>

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




  reply	other threads:[~2017-01-15 22:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-15 14:45 joakim
2017-01-15 22:27 ` Adam Sjøgren [this message]
2017-01-15 22:55   ` joakim

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=87fukkez6t.fsf@koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=ding@gnus.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).