news-server.ast 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @title Configuring Gnus for reading news
  2. @node Setting up the news server name and port number
  3. @variable server :string (or (gnus-getenv-nntpserver) "your-server-here")
  4. @variable port :number 119
  5. @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?"))
  6. @result gnus-select-method (list 'nntp server (list 'nntp-server port))
  7. @text
  8. Usenet news is usually read from your Internet service provider's news
  9. server. If you don't know the name of this server, contact your ISP.
  10. As a guess, the name of the server might be news.yourisp.com.
  11. Server name: @variable{server}
  12. Port number: @variable{port}
  13. @end text
  14. @next t "User name and password"
  15. @node User name and password
  16. @type interstitial
  17. @next
  18. (if (assistant-password-required-p)
  19. "Enter user name and password"
  20. "Want user name and password?")
  21. @end next
  22. @node Want user name and password?
  23. @variable passwordp (:radio ((item "Yes") (item "No"))) "No"
  24. @text
  25. Some news servers require that you enter a user name and a password.
  26. It doesn't look like your news server is one of them.
  27. Do you want to enter user name and password anyway?
  28. @variable{passwordp}
  29. @end text
  30. @next (equal passwordp "No") finish
  31. @next (not (equal passwordp "No")) "Enter user name and password"
  32. @node Enter user name and password
  33. @variable user-name :string (user-login-name)
  34. @variable password :password (or (assistant-authinfo-data server port 'password) "")
  35. @text
  36. It looks like your news server requires you to enter a user name
  37. and a password:
  38. User name: @variable{user-name}
  39. Password: @variable{user-name}
  40. @end text
  41. @c Local variables:
  42. @c mode: texinfo
  43. @c End:
  44. @c arch tag is missing