1 #include "gup.h"
2 
3 static	char	*hlist[] = {
4 "",
5 "--------------------------------------------------------------------------",
6 "The automated news update program accepts the following commands:",
7 "site, include, exclude, delete, list, newsgroups, help and quit.",
8 "",
9 "The 'site' command *must* come prior to any of the other commands.",
10 "After that any order of commands is acceptable. Note that commands are",
11 "processed in order and that the 'list' command displays the current state",
12 "as affected by any preceeding commands.",
13 "",
14 "Syntax:",
15 "",
16 "site           <sitename>      <password>",
17 "include        <pattern>",
18 "exclude        <pattern>",
19 "delete         <pattern>",
20 "list",
21 "newsgroups     <pattern>",
22 "quit",
23 "",
24 "Where:",
25 "",
26 "sitename       must be a valid site registered in the gup config file",
27 "password       Must match the registered password",
28 "pattern        Is a single 'wildmat' pattern of a newsgroup.",
29 "               In the case of 'Include' and 'Exclude' it is matched",
30 "               against the active file.",
31 "               With the 'delete' command. <pattern> is matched against the",
32 "               current group list.",
33 "",
34 "The 'include' command adds all groups that match the pattern into your",
35 "current group list. The 'exclude' command is typically used in conjunction",
36 "with a wildcard 'include' command, eg:",
37 "",
38 "include        comp.sys.*",
39 "exclude        comp.sys.weirdosystems",
40 "",
41 "In the above example, all of the groups in the comp.sys hierarchy will be",
42 "included, except for comp.sys.weirdosystems. In other words it's a merely",
43 "a convenient way of refining a large Include list.",
44 "",
45 "The 'delete' command removes all matching 'include' and 'exclude' patterns",
46 "from the current group list.",
47 "",
48 "newsgroups lists out all the valid newsgroups that match the pattern.",
49 "",
50 "quit is used to stop gup from parsing the rest of the mail, that typically",
51 "has signatures and such baggage on the end of it",
52 "--------------------------------------------------------------------------",
53 NULL};
54 
55 
56 int
help(tokens)57 help(tokens)
58 
59     char	**tokens;
60 
61 {
62     char	**hp;
63 
64     for (hp = hlist; *hp; hp++) logit(L_MAIL, "", *hp);
65 
66     return 0;
67 }
68