summaryrefslogtreecommitdiff
path: root/doc/misc/auth.texi
diff options
context:
space:
mode:
authorTed Zlatanov <tzz@lifelogs.com>2015-02-05 11:50:17 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2015-02-05 11:50:17 +0000
commitca25231a264d0c8dead443ab75c2edb02161cff9 (patch)
tree48e5a41abe46727f602728852b34fffa8f591160 /doc/misc/auth.texi
parentdf1e4ea210c081c969e092628aa999b1a4d59dfd (diff)
downloademacs-ca25231a264d0c8dead443ab75c2edb02161cff9.tar.gz
doc/misc/auth.texi (Multiple GMail accounts with Gnus): Add FAQ
Diffstat (limited to 'doc/misc/auth.texi')
-rw-r--r--doc/misc/auth.texi22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/misc/auth.texi b/doc/misc/auth.texi
index 44fcad8d493..d9145bcc2c4 100644
--- a/doc/misc/auth.texi
+++ b/doc/misc/auth.texi
@@ -59,6 +59,7 @@ It is a way for multiple applications to share a single configuration
@menu
* Overview:: Overview of the auth-source library.
* Help for users::
+* Multiple GMail accounts with Gnus::
* Secret Service API::
* Help for developers::
* GnuPG and EasyPG Assistant Configuration::
@@ -229,6 +230,27 @@ don't use a port entry, you match any Tramp method, as explained
earlier. Since Tramp has about 88 connection methods, this may be
necessary if you have an unusual (see earlier comment on those) setup.
+@node Multiple GMail accounts with Gnus
+@chapter Multiple GMail accounts with Gnus
+
+For multiple GMail accounts with Gnus, you have to make two nnimap
+entries in your @code{gnus-secondary-select-methods} with distinct
+names:
+
+@example
+(setq gnus-secondary-select-methods '((nnimap "gmail"
+ (nnimap-address "imap.gmail.com"))
+ (nnimap "gmail2"
+ (nnimap-address "imap.gmail.com"))))
+@end example
+
+Your netrc entries will then be:
+
+@example
+machine gmail login account@gmail.com password "accountpassword" port imap
+machine gmail2 login account2@gmail.com password "account2password" port imap
+@end example
+
@node Secret Service API
@chapter Secret Service API