]> code.delx.au - gnu-emacs/commitdiff
doc/misc/auth.texi (Multiple GMail accounts with Gnus): Add FAQ
authorTed Zlatanov <tzz@lifelogs.com>
Thu, 5 Feb 2015 11:50:17 +0000 (11:50 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 5 Feb 2015 11:50:17 +0000 (11:50 +0000)
doc/misc/ChangeLog
doc/misc/auth.texi

index 82a74cb284738747a9a0810b6d70376d5757315b..1264400041c0b4dbecd1cec425d0b3952064dcb5 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-05  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * auth.texi (Multiple GMail accounts with Gnus): Add FAQ.
+
 2015-02-05  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * gnus.texi (Using IMAP): Fix menu node name.
index 44fcad8d493a9a4a1bc28e6ba4ed1df6972bd373..d9145bcc2c4e9738b0a99abb966821dc95c96bd1 100644 (file)
@@ -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