Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
To: info-gnus-english@gnu.org
Subject: Re: several users for a single imap server
Date: Fri, 26 Sep 2014 15:09:40 +0200	[thread overview]
Message-ID: <874mvuh6jv.fsf@topper.koldfront.dk> (raw)
In-Reply-To: <m2fvfe3a9f.fsf@top.irisa.fr>

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> My question is: how can I configure gnus to access the same server
> with two different users? I could not find where to specify the user
> in the select methods, and if I put two users in my authinfo, I don't
> know how to tell gnus to use one or the other.

The "machine" keyword in the .authinfo file can be a little misleading.

Gnus uses it to match the name of the server in the configuration, not
to find the hostname to connect to.

So you can just configure two entries in your secondary select methods
to refer to different lines in your .authinfo.

I.e. you can have something like this in your .gnus:

  (setq gnus-secondary-select-methods
    '((nnimap "onename"   (nnimap-address "imap.gmail.com"))
      (nnimap "another"   (nnimap-address "imap.gmail.com"))))

And something like this in your .authinfo:

  machine onename login youremail@gmail.com password PASS1 port imap
  machine another login otheremal@gmail.com password PASS2 port imap


  Best regards,

    Adam

-- 
 "I used to feel Emacs' way strange. Maybe updating           Adam Sjøgren
  the copyright years of Walt Disney's works every year  asjo@koldfront.dk
  is nonsense. But Emacs' way is alike to it."


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2014-09-26 13:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26 11:13 Alan Schmitt
2014-09-26 13:09 ` Adam Sjøgren [this message]
2014-09-26 18:40   ` Alan Schmitt

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=874mvuh6jv.fsf@topper.koldfront.dk \
    --to=asjo@koldfront.dk \
    --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).