Troubleshooting the SpamBayes Outlook addin
This is a list of common problems, and hopefully their solutions.
Please feel free to suggest additional topics. Currently, we have
the following problems listed:
There is also an online
FAQ for SpamBayes which may have additional information of
use. You may also wish to see the latest
online version of this document for problems added since release.
Addin doesn't load
When you start Outlook, there is no SpamBayes item in the
toolbar, and no filtering occurs. To resolve this:
- Determine your
installation type.
- If you are running from source code, please re-register the
addin, as per the README.txt file.
- If you are running a binary version, then perform the following
steps:
- Start Outlook, and select Tools->Options to display the main Options
dialog.
- Select the tab labelled Other,
then click on the Advanced
button.
- Click on the COM Add-Ins
button.
- If the SpamBayes addin is not listed, then SpamBayes should be
reinstalled (Note that running regsvr32.exe
spambayes_addin.dll from the SpamBayes directory may also solve
this problem)
- If the SpamBayes addin is listed but not checked, then simply
check it and close the dialog.
- If you are running Outlook 2002,
you may find that if you go back to the dialog, the addin will still be
unselected. In this case, perform the following:
- Go to Help->About
Microsoft Outlook.
- Click the Disabled Items button.
- Select SpamBayes.
- Click Enable.
- Restart Outlook 2002.
If none of that works, I am stumped!
Addin loads, but no toolbar items can be
seen
If it appears the addin has loaded and is working correctly (ie, checking the log file indicates normal operation)
but you can not see any toolbar items for the addin, try the
following:.
- Make sure that you are displaying the 'SpamBayes' toolbar -
select
View -> Toolbars, and ensure that "SpamBayes" is selected.
- Try resetting the toolbars:
- Select View-> Toolbars-> Customize to display
the toolbar options dialog
- Select the tab labelled Toolbars,
select the 'Standard' toolbar,
and click Reset
- Restart Outlook
- Try deleting the SpamBayes toolbar
- Select View-> Toolbars-> Customize to display
the toolbar options dialog
- Select the tab labelled Toolbars,
select the 'SpamBayes' toolbar,
and click Delete
- Restart Outlook
If all else fails, you can completely reset the Outlook toolbars by
removing the file \Documents and
Settings\{username}\Application Data\Microsoft\Outlook\outcmd.dat.
Keep a copy of the file in case this does something nasty to your
system (it didn't to ours, and is documented a few places on the web,
but we make no guarantees).
Messages fail to filter
This is when messages arrive, but have no Spam field. Note that this is
different from a message having an incorrect or unexpected Spam value -
that case is covered next. This is for messages that have a
completely blank spam score. To resolve this:
- Check that filtering is enabled. Select the SpamBayes
manager, then ensure the button Enable Filtering is checked. If
you are unable to select this button due to insufficient training
information, please review the initial configuration
documentation for information on training.
- If only the occasional message fails to filter, then it is likely
that the message is in a format we don't understand. There is
almost certainly an error listed in the log file. Please report a bug, attaching both the log file and the message that caused the error.
- If all messages fail to filter, we have a more serious problem,
but again, please report
a bug, attaching the log
file.
Messages have
incorrect or unexpected Spam values
This is when filtering appears to work OK, except that the spam values
are wrong. To resolve this
- If the messages are all scoring as "unsure", with a score of 0.5,
then you may have lost your training database. From the SpamBayes manager dropdown, check
how many spam and ham have been loaded by the system. If this
number is very low (like zero!) then you probably need to perform a
full
re-train of your database.
- If the messages have apparently random, but unexpected scores,
then there are two possibilities; either SpamBayes is simply behaving
what appears to be strangely, but really is correctly, or that some of
the spam payload is invisible to SpamBayes. In both cases,
perform
the following:
- Ensure the message is selected in the Outlook preview pane, and
from the SpamBayes manager
dropdown, select Show Spam clues for
current message. This should open a new mail message with
the clues.
- Part of the clues shows the body of the spam message. If
this message correctly shows the spam text, then it is likely SpamBayes
is behaving correctly. In this case, you may wish to mail the
clues to the SpamBayes mailing list for help in decoding the clues, but
it is likely that SpamBayes is behaving correctly given your current
training data.
- If it appears that part of the spam payload is missing, then
you have probably stumbled across a bug - please mail the clues to the
mailing list.
All other problems
If you are simply usnure about what SpamBayes is doing, please send a
mail to the SpamBayes mailing
list
with as much information as possible. If you are fairly sure you
have struck a bug, then please report it.
Please do not mail any of the contributors directly.
Process Descriptions
This explains some of the processes above in more detail.
Determine your installation type.
If you are running from Python source code, and installed Python, plus
SpamBayes as seperate components, then you are running the source code version. If you
downloaded an installer .EXE file, then you are running the binary version.
Check the log file
Determine your installation type.
If you are running the source code version, then please see README.txt
in the Outlook2000 directory.
If you are running the binary version, then the SpamBayes addin writes
a log in your Windows temp directory. This directory is generally
\WINDOWS\TEMP for Windows 9x,
or \Documents and
Settings\{username}\Local
Settings\Temp for Windows 2000/XP.
Note that by default, in Windows 2000 and XP, Windows Explorer will not
show the Local Settings
directory, as it is hidden. You can convince Windows Explorer to
show this directory (and therefore allow you to see the Temp directory under it by doing
either:
- Select the folder \Documents
and Settings\{username}. This directory should be
reflected in the Address Bar. In the Address Bar, simply type at
the end "\Local Settings" (thereby giving that full path name), and
press Enter. Explorer
will then show this folder.
or
- Select Tools->Folder Options,
select the View tab, and in
the list, select Show hidden files
and folders. Select OK. This folder will now be
visible. You may like to then reset this option back to the
default value.
The log file for the
most recent execution of Outlook is named spambayes1.log, the second most
recent is named spambayes2.log,
and so on for the four previous runs. You can view this file with
notepad. Usually, you will simply see
messages which indicate that SpamBayes is doing its job; however
in some cases there will be errors in this file. If there are
errors, please report a bug.
Report a bug
All SpamBayes bugs are maintained in this
page at sourceforge. Please have a check of the bugs already
reported to see if your bug has already been reported. If not,
open a new bug, making sure to set the Category to Outlook. Please ensure you
attach the log file to the bug.
If you are unsure about the bug, or need any assistance, please send a
mail to the SpamBayes mailing
list.