https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6563

           Summary: Plugin::Pyzor regexp seems wrong, always fails to
                    parse response
           Product: Spamassassin
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Plugins
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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.

Is this just due to a pyzor response format change that no one noticed?

--mark--

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to