Merge from emacs-23; up to 2012-01-19T07:15:48Z!rgm@gnu.org.
[bpt/emacs.git] / etc / gnus / news-server.ast
CommitLineData
01c52d31
MB
1@title Configuring Gnus for reading news
2
3
4@node Setting up the news server name and port number
1888398e 5@variable server :string (or (gnus-getenv-nntpserver) "your-server-here")
01c52d31 6@variable port :number 119
1888398e 7@validate (or (assistant-validate-connect-to-server server port) (y-or-n-p "Do you want to use the server anyway, although you can't confirm it's valid?"))
01c52d31
MB
8@result gnus-select-method (list 'nntp server (list 'nntp-server port))
9@text
e1dbe924 10Usenet news is usually read from your Internet service provider's news
01c52d31
MB
11server. If you don't know the name of this server, contact your ISP.
12
13As a guess, the name of the server might be news.yourisp.com.
14
15Server name: @variable{server}
16Port number: @variable{port}
1888398e 17
01c52d31
MB
18@end text
19@next t "User name and password"
20
01c52d31
MB
21@node User name and password
22@type interstitial
23@next
24(if (assistant-password-required-p)
25 "Enter user name and password"
26 "Want user name and password?")
27@end next
28
29
30@node Want user name and password?
31@variable passwordp (:radio ((item "Yes") (item "No"))) "No"
32@text
33Some news servers require that you enter a user name and a password.
34It doesn't look like your news server is one of them.
35
36Do you want to enter user name and password anyway?
37
38@variable{passwordp}
39
40@end text
41
42@next (equal passwordp "No") finish
43@next (not (equal passwordp "No")) "Enter user name and password"
44
45
46@node Enter user name and password
47@variable user-name :string (user-login-name)
48@variable password :password (or (assistant-authinfo-data server port 'password) "")
49@text
50
51It looks like your news server requires you to enter a user name
52and a password:
53
54User name: @variable{user-name}
55Password: @variable{user-name}
56
57@end text
58
59@c Local variables:
60@c mode: texinfo
61@c End:
62
63@c arch tag is missing