home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / postroad.zip / prmblams.doc < prev    next >
Text File  |  1997-10-23  |  8KB  |  148 lines

  1.  
  2.              =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3.                             BlamSpam Version 1.0
  4.                   Adaptation for Use with Post Road Mailer
  5.                       InnoVal Systems Solutions, Inc.
  6.                                 May 12, 1997
  7.         -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  8.  
  9.      BlamSpam is a Spam Filter (or Twit Filter) for use with an InnoVal
  10.      product named Hacksaw.  BlamSpam will blow away the spam messages,
  11.      right on your POP3 server, before your regular email program has to
  12.      deal with them.  This is an adaptation of BlamSpam, for use with the
  13.      Post Road Mailer.  The files must be renamed to PRMRECV.CMD and
  14.      PRMRECV.CFG, or they won't work.  (They're not distributed with those
  15.      filenames, because a Post Road Mailer user might already have a
  16.      PRMRECV.CMD, and we certainly don't want to overwrite that when you
  17.      unzip this program into the directory!)  Furthermore, the files must
  18.      be in your Post Road Mailer directory (the one with INBASKET.NIX and
  19.      PRMSYS.INI in it).  The Post Road Mailer executes any file named
  20.      PRMRECV.CMD that it finds in that directory, at the end of the Refresh
  21.      process.  This BlamSpam program, then, renamed to PRMRECV.CMD, will
  22.      search all of the messages, as they arrive from the POP3 server, for
  23.      the strings specified in the PRMRECV.CFG file, and delete the messages
  24.      which contain any of those strings in their applicable portions.
  25.  
  26.              =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  27.                             The PRMRECV.CFG File
  28.         -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  29.  
  30.      A sample PRMRECV.CFG file is included, which contains entries for many
  31.      internet addresses that are known to send spam messages.
  32.  
  33.      Blank lines, and lines which begin with /* are ignored.
  34.  
  35.      There are two other types of lines in a PRMRECV.CFG file:
  36.  
  37.      The only required lines in this file are the lines which tell the
  38.      program which messages to delete.  Each of these lines contains a
  39.      single search string, which can be the author's email address, a word
  40.      or phrase in the subject line, or even a string of text from the body
  41.      of the message.  Choose a string which will appear in the messages you
  42.      want deleted but which will not ever, under any circumstances, appear
  43.      in the applicable part(s) of any other messages.
  44.  
  45.      If you don't tell it otherwise, the program will find these strings in
  46.      any message header line (which, by definition, means any line before
  47.      the first blank line of the message) but not in any of the message
  48.      body text (past the first blank line, which is the divider between the
  49.      headers and the body of the message).  If you need to make the program
  50.      search the message body text as well as (or instead of) the header
  51.      lines, or if you need to make it search only certain ones of the
  52.      header lines instead of all of them, you can do that, too, using a
  53.      HEADERLINES parameter.
  54.  
  55.      To make the program apply a HEADERLINES parameter to one single line
  56.      of the PRMRECV.CFG file, you can put it on that same line of the file,
  57.      after a <TAB> character.  For example:
  58.  
  59.         spamco.com<TAB>From:
  60.  
  61.      This example would kill all the messages with "spamco.com" in the
  62.      From: header, but no messages with that string in the Subject: header
  63.      or anywhere else in the message.
  64.  
  65.      In order for that to work, you must create the PRMRECV.CFG file with a
  66.      text editor which actually places <TAB> characters into the file,
  67.      rather than converting them to a certain number of spaces the way so
  68.      many text editors do!  OS/2's E.EXE is safe for this purpose.
  69.  
  70.      In order to make a HEADERLINES parameter apply to all subsequent lines
  71.      of the PRMRECV.CFG file instead of only the one line, you insert a
  72.      line such as this one:
  73.  
  74.         <headerlines>=From:
  75.  
  76.      before the first of the lines to which you want it to apply.  That is
  77.      the third possible type of line in a PRMRECV.CFG file.  It will change
  78.      the HEADERLINES parameter for all PRMRECV.CFG lines below it, until
  79.      the next <headerlines>= line in the file (if any).  Except, of course,
  80.      for any lines which have their own HEADERLINES parameters (that is, a
  81.      <TAB> character and another string, following the search string).  A
  82.      HEADERLINES parameter on a search string line overrides whatever
  83.      global HEADERLINES parameter default is in effect in that part of the
  84.      PRMRECV.CFG file.
  85.  
  86.      The reason the default behavior of BlamSpam is to look for matches in
  87.      all the header lines and none of the message body text, is because the
  88.      default HEADERLINES value is NOBODY.  NOBODY means not to search the
  89.      body text, just the header lines.
  90.  
  91.      Another valid value for HEADERLINES is ENTIRE.  This means that the
  92.      entire message will be searched:  The header lines and the message
  93.      body text.
  94.  
  95.      The other possible values for HEADERLINES are MSGTEXT which means just
  96.      the message body text and no header lines; or any valid internet
  97.      message header tag such as TO, FROM, SUBJECT, X-MAILER, REPLY-TO,
  98.      RECEIVED, etc.  These must be spelled the same way as they are spelled
  99.      in the headers of the messages, though they're case insensitive and
  100.      the colon is optional. That is, the program will treat "FROM:" and
  101.      "From:" and "FrOm" and "from" identically.
  102.  
  103.      Except for NOBODY and ENTIRE, all other possible HEADERLINES values
  104.      can be combined, using spaces or commas.  For example, you can say
  105.      "FROM,REPLY-TO" or "REPLY-TO FROM" to have the program search only
  106.      both of those header lines in each of the messages.
  107.  
  108.      Remember, when using the ENTIRE or MSGTEXT value for the HEADERLINES
  109.      parameter, keep the search string as short as possible.  If the string
  110.      is more than one word long, it can occur with a carriage return in the
  111.      middle of it instead of a space, in which case the program will not
  112.      recognize it as a match!  If the string is only one word long, then
  113.      the only way it can be missed is if it's hyphenated and split across
  114.      two lines of the message.
  115.  
  116.              =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  117.                           Example PRMRECV.CFG File
  118.         -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  119.  
  120.      spamco@isp.com
  121.      Spamco<TAB>Sender: Reply-To:
  122.      Spamco, Inc.<TAB>subject,msgtext
  123.      <headerlines>=msgtext
  124.      Spamco Product Name
  125.      111.222.333.444<TAB>Received
  126.      foul language<TAB>entire
  127.      4letterword
  128.      spamco2@elsewhere.com<TAB>NoBody
  129.  
  130.      Since NOBODY is the default HEADERLINES parameter value, the program
  131.      will search only the header lines, and not the message body text, for
  132.      spamco@isp.com.  It will search for Spamco in only the Sender: and
  133.      Reply-to: header lines.  It will search only the Subject: header line
  134.      and all of the message body text for Spamco, Inc.  The next line,
  135.      <headerlines>=msgtext, causes the default HEADERLINES parameter to be
  136.      changed from NOBODY to MSGTEXT for all future entries which don't have
  137.      their own HEADERLINES parameter on them.  So the phrase "Spamco
  138.      Product Name" will be searched for only in the message body text, not
  139.      in any header lines.  The same will be true for the word 4letterword.
  140.      The IP address 111.222.333.444 will be searched in only the Received:
  141.      lines, and the phrase "foul language" will be searched for in all
  142.      header lines and the message body text as well.  Finally,
  143.      spamco2@elsewhere.com will be searched for in all the header lines but
  144.      not the message body text.  The only reason the NOBODY parameter is
  145.      needed there is because the global default had been changed from
  146.      NOBODY to MSGTEXT by the earlier <headerlines>= line of the file.
  147.  
  148.