[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple imap accounts

From: Reiner Steib
Subject: Re: Multiple imap accounts
Date: Wed, 14 Jul 2004 22:32:48 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

On Wed, Jul 14 2004, Pete Ware wrote:

> I'd like to get email from two different accounts on the same machine
> with the nnimap backend.  How do I specify the user?  I'd expect
> something like:
> (setq gnus-secondary-select-methods
>       '((nnimap "Test1"
>               (nnimap-address "")
>               (nnimap-user "test1")
>               (user "root"))
>       (nnimap "Test2"
>               (nnimap-address "")
>               (nnimap-user "test2")
>               (user "test2"))))

You can do it using the authinfo file.  In an uncommitted change to
the Gnus manual, I have added an example:

,----[ (info "(gnus)IMAP") ]
| `nnimap-authinfo-file'
|      A file containing credentials used to log in on servers.  The
|      format is (almost) the same as the `ftp' `~/.netrc' file.  See the
|      variable `nntp-authinfo-file' for exact syntax; also see *Note
|      NNTP::.
|      When using different accounts on the same IMAP server
|           (nnimap "FOO"
|               (nnimap-address "IMAP.SERVER.EXAMPLE")
|               (nnimap-directory "~/News/FOO/overview/"))
|      and
|           (nnimap "BAR"
|               (nnimap-address "IMAP.SERVER.EXAMPLE")
|               (nnimap-directory "~/News/BAR/overview/"))
|      you can use the server name instead of the server address
|      (`nnimap-address') in the `nnimap-authinfo-file':
|           machine FOO login LOGIN-NAME-FOR-FOO password GEHEIMNIS-FOO
|           machine BAR login LOGIN-NAME-FOR-BAR password GEHEIMNIS-BAR
|      In this case, you should should also choose different values for
|      `nnimap-directory' for different accounts as in the example above.

Bye, Reiner.
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW

reply via email to

[Prev in Thread] Current Thread [Next in Thread]