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

asjo@koldfront.dk (Adam Sjøgren) writes:

> 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!

It did, thanks very much!

>
>
>   Best regards,
>
>     Adam
-- 
Joakim Verona
joakim@verona.se





      reply	other threads:[~2017-01-15 22:55 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
2017-01-15 22:55   ` joakim [this message]

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=m3k29wue5r.fsf@chopper \
    --to=joakim@verona.se \
    --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).