annotate doc/misc/auth.texi @ 103246:94e71fa6e9ac

(font_find_for_lface): Copy SPEC's FONT_TYPE too.
author Kenichi Handa <handa@m17n.org>
date Mon, 18 May 2009 12:14:14 +0000
parents 3e7c6b40afdd
children b99b3dda298b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
102054
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
1 \input texinfo @c -*-texinfo-*-
102371
0e907e93a720 Fix @setfilename.
Glenn Morris <rgm@gnu.org>
parents: 102059
diff changeset
2 @setfilename ../../info/auth
102059
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
3 @settitle Emacs auth-source Library @value{VERSION}
102054
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
4
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
5 @set VERSION 0.1
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
6
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
7 @copying
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
8 This file describes the Emacs auth-source library.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
9
102059
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
10 Copyright @copyright{} 2008, 2009 Free Software Foundation, Inc.
102054
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
11
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
12 @quotation
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
13 Permission is granted to copy, distribute and/or modify this document
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
14 under the terms of the GNU Free Documentation License, Version 1.3 or
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
15 any later version published by the Free Software Foundation; with no
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
16 Invariant Sections, with the Front-Cover texts being ``A GNU Manual,''
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
17 and with the Back-Cover Texts as in (a) below. A copy of the license
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
18 is included in the section entitled ``GNU Free Documentation License''
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
19 in the Emacs manual.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
20
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
21 (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
22 modify this GNU manual. Buying copies from the FSF supports it in
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
23 developing GNU and promoting software freedom.''
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
24
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
25 This document is part of a collection distributed under the GNU Free
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
26 Documentation License. If you want to distribute this document
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
27 separately from the collection, you can do so by adding a copy of the
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
28 license to the document, as described in section 6 of the license.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
29 @end quotation
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
30 @end copying
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
31
102059
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
32 @dircategory Emacs
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
33 @direntry
102820
3e7c6b40afdd Capitalize direntry.
Glenn Morris <rgm@gnu.org>
parents: 102371
diff changeset
34 * Auth-source: (auth). The Emacs auth-source library.
102059
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
35 @end direntry
102054
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
36
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
37 @titlepage
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
38 @title Emacs auth-source Library
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
39 @author by Ted Zlatanov
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
40 @page
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
41 @vskip 0pt plus 1filll
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
42 @insertcopying
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
43 @end titlepage
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
44
102059
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
45 @contents
102054
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
46
102059
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
47 @ifnottex
102054
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
48 @node Top
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
49 @top Emacs auth-source
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
50 This manual describes the Emacs auth-source library.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
51
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
52 It is a way for multiple applications to share a single configuration
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
53 (in Emacs and in files) for user convenience.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
54
102059
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
55 @insertcopying
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
56
102054
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
57 @menu
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
58 * Overview:: Overview of the auth-source library.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
59 * Help for users::
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
60 * Help for developers::
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
61 * Index::
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
62 * Function Index::
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
63 * Variable Index::
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
64 @end menu
102059
9bcea07061a8 consistently use @insertcopying, @direntry, @contents
Karl Berry <karl@gnu.org>
parents: 102054
diff changeset
65 @end ifnottex
102054
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
66
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
67 @node Overview
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
68 @chapter Overview
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
69
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
70 To be done.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
71
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
72 @node Help for users
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
73 @chapter Help for users
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
74
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
75 If you have problems with the port, turn up @code{gnus-verbose} and
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
76 see what port the library is checking. Ditto for any other
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
77 problems, your first step is to see what's being checked.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
78
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
79 Setup:
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
80
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
81 @lisp
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
82 (require 'auth-source)
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
83 (customize-variable 'auth-sources) ;; optional, do it once
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
84 @end lisp
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
85
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
86 @defvar auth-sources
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
87
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
88 The @var{auth-sources} variable tells the auth-source library where
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
89 your netrc files live for a particular host and protocol. While you
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
90 can get fancy, the default and simplest configuration is:
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
91
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
92 @lisp
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
93 (setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
94 @end lisp
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
95
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
96 By adding multiple entries to that list with a particular host or
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
97 protocol, you can have specific netrc files for that host or protocol.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
98
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
99 @end defvar
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
100
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
101
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
102 ``Netrc'' files are a de facto standard. They look like this:
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
103 @example
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
104 machine mymachine login myloginname password mypassword port myport
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
105 @end example
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
106
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
107 The port is optional. If it's missing, auth-source will assume any
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
108 port is OK. Actually the port is a protocol name or a port number so
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
109 you can have separate entries for port 143 and for protocol ``imap''
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
110 if you fancy that.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
111
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
112 If you don't customize @var{auth-sources}, you'll have to live with
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
113 the defaults: any host and any port are looked up in the netrc
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
114 file @code{~/.authinfo.gpg}. This is an encrypted file if and only if
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
115 you set up EPA, which is strongly recommended.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
116
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
117 @lisp
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
118 (require 'epa-file)
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
119 (epa-file-enable)
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
120 (setq epa-file-cache-passphrase-for-symmetric-encryption t) ; VERY important
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
121 @end lisp
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
122
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
123 For url-auth authentication (HTTP/HTTPS), you need to put this in your
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
124 netrc file:
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
125
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
126 @example
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
127 machine yourmachine.com:80 port http login testuser password testpass
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
128 @end example
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
129
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
130 This will match any realm and authentication method (basic or
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
131 digest). If you want finer controls, explore the url-auth source
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
132 code and variables.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
133
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
134 For Tramp authentication, use:
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
135
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
136 @example
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
137 machine yourmachine.com port scp login testuser password testpass
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
138 @end example
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
139
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
140 Note that the port denotes the Tramp connection method. When you
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
141 don't use a port entry, you match any Tramp method, as explained
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
142 earlier.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
143
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
144 @node Help for developers
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
145 @chapter Help for developers
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
146
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
147 The auth-source library only has one function for external use.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
148
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
149 @defun auth-source-user-or-password mode host port
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
150
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
151 Retrieve appropriate authentication tokens, determined by @var{mode},
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
152 for host @var{host} and @var{port}. If @code{gnus-verbose} is 9 or
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
153 higher, debugging messages will be printed.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
154
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
155 If @var{mode} is a list of strings, the function will return a list of
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
156 strings or @code{nil} objects. If it's a string, the function will
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
157 return a string or a @code{nil} object. Currently only the modes
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
158 ``login'' and ``password'' are recognized but more may be added in the
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
159 future.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
160
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
161 @var{host} is a string containing the host name.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
162
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
163 @var{port} contains the protocol name (e.g. ``imap'') or
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
164 a port number. It must be a string, corresponding to the port in the
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
165 users' netrc files.
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
166
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
167 @example
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
168 ;; IMAP example
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
169 (setq auth (auth-source-user-or-password
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
170 '("login" "password")
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
171 "anyhostnamehere"
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
172 "imap"))
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
173 (nth 0 auth) ; the login name
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
174 (nth 1 auth) ; the password
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
175 @end example
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
176
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
177 @end defun
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
178
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
179 @node Index
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
180 @chapter Index
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
181 @printindex cp
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
182
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
183 @node Function Index
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
184 @chapter Function Index
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
185 @printindex fn
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
186
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
187 @node Variable Index
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
188 @chapter Variable Index
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
189 @printindex vr
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
190
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
191 @bye
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
192
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
193 @c End:
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
194
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
195 @ignore
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
196 arch-tag: 7b835fd3-473f-40fc-9776-1c4e49d26c94
c35aac5fa64e Merge from gnus--devo--0
Miles Bader <miles@gnu.org>
parents:
diff changeset
197 @end ignore