bayes.pl utility script

The bayes.pl script provides a way to see the word matrix for any text message fed to the script.

Usage

The script must be run from the popfile installation directory. Windows users should open a DOS box and switch to the popfile directory (normally c:\program files\popfile\ but it can be different on your system).

   <code>
   cd "\program files\popfile\"
   

</code>

Once in the popfile installation directory, issue the following to run the program.

   <code>
   perl bayes.pl filenametoanalyze
   

</code>

Since the output from bayes.pl can easily exceed a screen, you can either pipe it to a utility like more, or capture it to a text file you can examine with any text editor, like notepad.

   **Example - Piping to more**

   <code>
   perl bayes.pl filenametoanalyze | more
   
testmsg.msg is 'normal'
  -000000 6
  -666666 3
  -999999 2
  -bbddff 1
  -cccccc 1
  -eeeeee 3
  -ffffff 6
127.0.0.1 1
66.35.250.131 2
absolute 1
access 8
add 2
added 2
administrator 2
advantage 1
allowing 2
allows 8
from:osdn.com 1
header:Content-Transfer-Encoding 1
header:Content-Type 1
header:Date 1
header:Errors-to 1
header:From 1
header:List-Archive 1
header:List-Help 1
header:List-Id 1
header:List-Owner 1
header:List-Post 1
header:List-Subscribe 1
header:List-Unsubscribe 1
header:Message-Id 1
header:Mime-version 1
header:Precedence 1
header:Received 5
header:Reply-To 1
header:Sender 1
header:Subject 1
header:To 1
header:X-Loop 1
header:X-Originating-IP 1
header:X-Sequence 1
header:X-no-archive 1
headers 1
hover 1
html:backcolor#999999 2
html:backcolor#BBDDFF 1
html:backcolor#CCCCCC 1
html:backcolor#FFFFFF 6
html:backcolor#eeeeee 3
html:comment 6
html:fontcolor#000000 6
html:fontcolor#666666 3
html:fontsize+0 1
html:fontsize+1 3
html:fontsize-1 2
html:fontsize-2 3
html:imgheight1 4
html:imgheight2 1
html:imgremotesrc 6
html:imgwidth1 4
html:imgwidth476 1
html:numericentity 4
html:td 16