teythoon/afew — Issue #28: [ClassifyingFilter] missing argument to dbacl-call results in crash
Author: herrsimon
Created: 2012-02-09 15:04:33+00:00
State: open

Hi,

with no classifications setup, a run of the classifying filter throws the error

INFO:root:Tagging via classification
DEBUG:root:Executing query u''
DEBUG:root:executing [u'dbacl', u'-n']
Traceback (most recent call last):
File "/usr/bin/afew", line 169, in
main(options, query_string)
File "/usr/lib/python2.7/site-packages/afew/main.py", line 33, in main
filter_.run(query_string)
File "/usr/lib/python2.7/site-packages/afew/Filter.py", line 60, in run
self.handle_message(message)
File "/usr/lib/python2.7/site-packages/afew/filters/ClassifyingFilter.py", line 33, in handle_message
scores = self.classifier.classify(extract_mail_body(message))
File "/usr/lib/python2.7/site-packages/afew/DBACL.py", line 108, in classify
raise BackendError('dbacl classification failed:\n%s' % stderr)
afew.DBACL.BackendError: dbacl classification failed:
dbacl:error: please use either -c or -l option.

Best,

Simon