You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Mark Hedges <he...@formdata.biz> on 2011/03/25 20:47:06 UTC

problems running pyzor

When running the learn process, pyzor fails.

It seems to work fine when I try it from the command line
using any regular user or the user spamd runs as:

$ pyzor -d check < /tmp/lame.mbox
downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x
sending: 'User: anonymous\nTime: 1301081371\nSig: 132e5b269db9b775042342f556f5e47266069654\n\nOp: check\nOp-Digest: cd6a09de5a158d25ae24e9ae6c16cc2edd3a6bf2\nThread: 26287\nPV: 2.0\n\n'
received: 'Thread: 26287\nCount: 0\nWL-Count: 0\nCode: 200\nDiag: OK\nPV: 2.0\n\n'
public.pyzor.org:24441  (200, 'OK') 0   0

But when I run SA with debug, this is the log:

[18638] dbg: pyzor: pyzor is available: /usr/bin/pyzor
[18638] dbg: info: entering helper-app run mode
[18638] dbg: pyzor: opening pipe: /usr/bin/pyzor -d check < /tmp/.spamassassin18638iSKXO7tmp
[18645] dbg: util: setuid: ruid=502 euid=502
[18638] dbg: pyzor: [18645] finished: exit=0x0100
[18638] dbg: pyzor: got response: sending: 'User: anonymous\nTime: 1301081098\nSig: 955d57948e28759729e7f55df027eb5875e7a323\n\nOp: check\nOp-Digest: d4799b6635caaa20305ac45f068d8763c9c86cae\nThread: 65054\nPV: 2.0\n\n'\nreceived: 'Thread: 65054\nCount: 0\nWL-Count: 0\nCode: 200\nDiag: OK\nPV: 2.0\n\n'\npublic.pyzor.org:24441 (200, 'OK') 0 0
[18638] dbg: info: leaving helper-app run mode
[18638] dbg: pyzor: failure to parse response "sending: 'User: anonymous\nTime: 1301081098\nSig: 955d57948e28759729e7f55df027eb5875e7a323\n\nOp: check\nOp-Digest: d4799b6635caaa20305ac45f068d8763c9c86cae\nThread: 65054\nPV: 2.0\n\n'"
[18638] dbg: pyzor: failure to parse response "received: 'Thread: 65054\nCount: 0\nWL-Count: 0\nCode: 200\nDiag: OK\nPV: 2.0\n\n'"

The regexp in Mail::SpamAssassin::Plugin::Pyzor doesn't make sense to me:

  if ($one_response =~ /^\S+\t.*?\t(\d+)\t(\d+)\s*$/) {

... there are no tabs in the output from the pyzor server.
It seems like it will never match.  Which means pyzor
doesn't work at all for anyone anymore.

Any clues?

Mark

Re: problems running pyzor

Posted by Mark Hedges <he...@formdata.biz>.
Sorry, I was out in left field.  --mark--

Re: problems running pyzor

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Fri, 2011-03-25 at 12:47 -0700, Mark Hedges wrote:
> The regexp in Mail::SpamAssassin::Plugin::Pyzor doesn't make sense to me:
[...]
> ... there are no tabs in the output from the pyzor server.
> It seems like it will never match.  Which means pyzor
> doesn't work at all for anyone anymore.

Logger.pm log_message() substitutes tabs for spaces in that dbg()
output.

> Any clues?

If you are asking for help here, why do you feel the need to duplicate
it to bugzilla?


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}