[spambayes-bugs] [ spambayes-Bugs-895606 ] 1.0a9 proxy raises an
X-Spambayes-Exception
SourceForge.net
noreply at sourceforge.net
Thu Feb 12 16:17:42 EST 2004
Bugs item #895606, was opened at 2004-02-12 05:31
Message generated for change (Comment added) made by kpitt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=895606&group_id=61702
Category: pop3proxy
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Massimo Ferrario (maxferrario)
Assigned to: Nobody/Anonymous (nobody)
Summary: 1.0a9 proxy raises an X-Spambayes-Exception
Initial Comment:
After I upgraded to 1.0a9 the pop3 proxy raises the
following error:
X-Spambayes-Exception: Traceback (most recent call
last):
. File "/usr/bin/sb_server.py", line 445, in onRetr. try:
. File "/usr/lib/python2.2/site-
packages/spambayes/message.py", line 400,
in addSBHeaders. if disposition in options
["Headers", "notate_to"]:
.TypeError: 'in <string>' requires character as left
operand
The error is raised on all messages.
I have set the "notate to" option in the configuration
panel to "spam".
The proxy is running on a Red Hat Linux release 9 box.
Could you please explain me hot to downgrade to 1.0a7?
It was working rather well. I tried to to launch the install
script again but it didn't do anything as it skipped all files.
Do I have to manually delete 1.0a9 files and then
reinstall 1.0a7?
Thanks
----------------------------------------------------------------------
>Comment By: Kenny Pitt (kpitt)
Date: 2004-02-12 16:17
Message:
Logged In: YES
user_id=859086
Dougie, have you run the proxy and downloaded messages
using the configuration you specified (and using the 1.0a9
release)? If so, could you report whether or not it worked
correctly?
It appears that this is a bug in the code. If the "notate_to"
or "notate_subject" options are set to a list of dispositions
such as "unsure spam" then the code works correctly because
it expects a tuple. However, in the case of a single
disposition such as "spam" the option value is actually a
string. The line of code that causes the exception does not
take this into account. The same error should occur
if "notate_subject" is set to a single disposition.
----------------------------------------------------------------------
Comment By: Dougie Lawson (dougielawson)
Date: 2004-02-12 15:57
Message:
Logged In: YES
user_id=965369
Have you tried deleting your bayescustomize.ini and
re-creating it using the config options?
Or edit bayescustomize.ini and check that the [Headers]
stanza is syntactically correct?
Mine has:
[Headers]
notate_subject:unsure spam
header_score_digits:3
include_evidence:True
include_score:True
include_thermostat:True
notate_to:spam
When I set the notate option from the web interface.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=895606&group_id=61702
More information about the Spambayes-bugs
mailing list