432f71a50f08e1a01a2fc9ceca8409561ae53be7
[gnus] / etc / gnus / news-server.ast
1 @title Configuring Gnus for reading news
2
3
4 @node Setting up the news server name and port number
5 @variable server :string (or (gnus-getenv-nntpserver) "your-server-here")
6 @variable port :number 119
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?"))
8 @result gnus-select-method (list 'nntp server (list 'nntp-server port))
9 @text
10 Usenet news is usually read from your Internet service prodider's news
11 server.  If you don't know the name of this server, contact your ISP.
12
13 As a guess, the name of the server might be news.yourisp.com.
14
15 Server name: @variable{server}
16 Port number: @variable{port}
17
18 @end text
19 @next t "User name and password"
20
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
33 Some news servers require that you enter a user name and a password.
34 It doesn't look like your news server is one of them.
35
36 Do 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
51 It looks like your news server requires you to enter a user name
52 and a password:
53
54 User name: @variable{user-name}
55 Password: @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
64