X-Git-Url: http://scm.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=msg%2Fbadmsg.pl.issue;fp=msg%2Fbadmsg.pl.issue;h=3b13e3bfc14c887eb7134129fa26a64539c26bd0;hb=a8b7d0b77fd3cefb1943ce7548f8c803aa83ff39;hp=7a1b3fea0a3f711781e3ec282159fadfb0ef5216;hpb=3784e03cd598b7f540fb849a533b7589867a066a;p=spider.git diff --git a/msg/badmsg.pl.issue b/msg/badmsg.pl.issue index 7a1b3fea..3b13e3bf 100644 --- a/msg/badmsg.pl.issue +++ b/msg/badmsg.pl.issue @@ -1,14 +1,36 @@ # -# the list of TO addresses for messages that we won't store having +# the list of regexes for messages that we won't store having # received them (bear in mind that we must receive them fully before # we can bin them) # +# +# The format of each line is as follows +# +# type source pattern +# P/B/F T/F/O/S regex +# +# type: P - private, B - bulletin (msg), F - file (ak1a bull) +# source: T - to field, F - from field, O - origin, S - subject +# pattern: a perl regex on the field requested +# +# Currently only type B and P msgs are affected by this code. +# +# The list is read from the top down, the first pattern that matches +# causes the action to be taken. +# +# The pattern can be undef or 0 in which case it will always be selected +# for the action specified +# + package DXMsg; -@badmsg = qw -( - SALE - FORSALE - WANTED -); +@badmsg = ( +'B', 'T', 'SALE', +'B', 'T', 'WANTED', +'B', 'S', 'WANTED', +'B', 'S', 'SALE', +'B', 'S', 'WTB', +'B', 'S', 'WTS', +); +