From: Mark F. <mar...@na...> - 2009-05-01 10:40:36
|
On Fri, 2009-05-01 at 09:16 +0200, Andreas Fuchs wrote: > Hi > > Im testing with the following test (from > http://wiki.apache.org/spamassassin/UsingPyzor): > > echo "test" | spamassassin -D pyzor 2>&1 | less > > and get the following output: > > [935] dbg: pyzor: network tests on, attempting Pyzor > [935] dbg: pyzor: pyzor is available: /usr/local/bin/pyzor > [935] dbg: pyzor: opening pipe: /usr/local/bin/pyzor check < > /tmp/.spamassassin935TAIZ9Ttmp > [935] dbg: pyzor: [947] finished: exit=0x0100 > [935] dbg: pyzor: got response: Traceback (most recent call last):\n > File "/usr/local/bin/pyzor", l > ine 4, in ?\n pyzor.client.run()\n File > "/usr/local/lib/python2.4/site-packages/pyzor/client.py", l > ine 934, in run\n ExecCall().run()\n File > "/usr/local/lib/python2.4/site-packages/pyzor/client.py", > line 188, in run\n if not apply(dispatch, (self, args)):\n File > "/usr/local/lib/python2.4/site-pac > kages/pyzor/client.py", line 264, in check\n response = > runner.run(server, (digest, server))\n File > "/usr/local/lib/python2.4/site-packages/pyzor/client.py", line 725, in > run\n response = apply(self > .routine, varargs, kwargs)\n File > "/usr/local/lib/python2.4/site-packages/pyzor/client.py", line 57 > , in check\n msg = CheckRequest(digest)\n File > "/usr/local/lib/python2.4/site-packages/pyzor/__init > __.py", line 381, in __init__\n typecheck(digest, str)\n File > "/usr/local/lib/python2.4/site-packag > es/pyzor/__init__.py", line 494, in typecheck\n raise TypeError\nTypeError > [935] warn: pyzor: check failed: internal error > > > Is there something wrong or is it cause i'm not testing with a valid > email? No, the test should work as shown. I would suggest checking that you are configured to communicate with public.pyzor.com. For me that is set in /etc/spamassassin/servers but it looks like you may have compiled your install from source so I'm not sure where that setting might be for you, sorry. > How can i test with a valid email, as i'm in a maildir > environment i'm not shure how to save a single mail in the correct > format in a file? Or what else could be wrong? With maildir each email is a separate file, usually ~/.maildir/ or ~/Maildir/, or do you mean mbox which is a single file for the entire mailbox? Thanks, -- Mark Fisher |