hopefully got it right now!
[spider.git] / html / adminmanual-8.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4  <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
5  <TITLE>The DXSpider Installation and Administration Manual : Other filters</TITLE>
6  <LINK HREF="adminmanual-9.html" REL=next>
7  <LINK HREF="adminmanual-7.html" REL=previous>
8  <LINK HREF="adminmanual.html#toc8" REL=contents>
9 </HEAD>
10 <BODY>
11 <A HREF="adminmanual-9.html">Next</A>
12 <A HREF="adminmanual-7.html">Previous</A>
13 <A HREF="adminmanual.html#toc8">Contents</A>
14 <HR>
15 <H2><A NAME="s8">8. Other filters</A></H2>
16
17 <H2><A NAME="ss8.1">8.1 Filtering Mail</A>
18 </H2>
19
20 <P>In the /spider/msg directory you will find a file called badmsg.pl.issue.  Rename
21 this to badmsg.pl and edit the file.  The original looks something like this ....
22 <P>
23 <BLOCKQUOTE><CODE>
24 <PRE>
25
26 # the list of regexes for messages that we won't store having
27 # received them (bear in mind that we must receive them fully before
28 # we can bin them)
29
30
31 # The format of each line is as follows
32
33 #     type      source             pattern 
34 #     P/B/F     T/F/O/S            regex  
35
36 # type: P - private, B - bulletin (msg), F - file (ak1a bull)
37 # source: T - to field, F - from field,  O - origin, S - subject 
38 # pattern: a perl regex on the field requested
39
40 # Currently only type B and P msgs are affected by this code.
41
42 # The list is read from the top down, the first pattern that matches
43 # causes the action to be taken.
44
45 # The pattern can be undef or 0 in which case it will always be selected
46 # for the action specified
47
48
49
50 package DXMsg;
51
52 @badmsg = (
53 'B',    'T',    'SALE', 
54 'B',    'T',    'WANTED',
55 'B',    'S',    'WANTED',
56 'B',    'S',    'SALE', 
57 'B',    'S',    'WTB',
58 'B',    'S',    'WTS',
59 'B',    'T',    'FS',
60 );
61 </PRE>
62 </CODE></BLOCKQUOTE>
63 <P>
64 <P>I think this is fairly self explanatory.  It is simply a list of subject 
65 headers that we do not want to pass on to either the users of the cluster or 
66 the other cluster nodes that we are linked to.  This is usually because of 
67 rules and regulations pertaining to items for sale etc in a particular country.
68 <P>
69 <H2><A NAME="ss8.2">8.2 Filtering DX callouts (Depricated)</A>
70 </H2>
71
72 <P><B><I>From version 1.47, this method is replaced by the command set/baddx</I></B>
73 <P>
74 <P>In the same way as mail, there are some types of spot we do not wish to pass on 
75 to users or linked cluster nodes.  In the /spider/data directory you will find 
76 a file called baddx.pl.issue.  Rename this to baddx.pl and edit the file.  The
77 original looks like this ....
78 <P>
79 <BLOCKQUOTE><CODE>
80 <PRE>
81
82 # the list of dx spot addresses that we don't store and don't pass on
83
84
85 package DXProt;
86
87 @baddx = qw 
88
89  FROG 
90  SALE
91  FORSALE
92  WANTED
93  P1RATE
94  PIRATE
95  TEST
96  DXTEST
97  NIL
98  NOCALL 
99 );
100 </PRE>
101 </CODE></BLOCKQUOTE>
102 <P>
103 <P>Again, this is simply a list of names we do not want to see in the spotted 
104 field of a DX callout.
105 <P>
106 <P>
107 <H2><A NAME="ss8.3">8.3 Filtering words from text fields in Announce, Talk and DX spots</A>
108 </H2>
109
110 <P>Create a file in /spider/data called <EM>badwords</EM>.  The format is quite
111 simple.  Lines beginning with # are ignored so comments can be added.  An
112 example file is below ...
113 <P>
114 <BLOCKQUOTE><CODE>
115 <PRE>
116 # Below is a list of words we do not wish to see on the cluster
117 grunge grunged grunging
118 splodge splodger splodging
119 grince
120 fluffle
121 </PRE>
122 </CODE></BLOCKQUOTE>
123 <P>Multiple words can be used on the same line as shown.  Obviously these
124 are just examples :-)
125 <P>
126 <P>You can reload the file from the cluster prompt as sysop with load/badwords.
127 <P>
128 <HR>
129 <A HREF="adminmanual-9.html">Next</A>
130 <A HREF="adminmanual-7.html">Previous</A>
131 <A HREF="adminmanual.html#toc8">Contents</A>
132 </BODY>
133 </HTML>