http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4825
Summary: Mail::SpamAssassin::Client::ping always returns 0
Product: Spamassassin
Version: 3.1.0
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Libraries
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
>From http://rt.cpan.org/Ticket/Display.html?id=18124:
There is a bug in /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Client.pm
In function "ping". The function always returns "0" - even if it can
ping SpamAssassin.
The reason is there:
return 0 unless ($resp_msg eq 'PONG'); (line 425)
$resp_msg is something like "PONG\n" - so, the test fails. You can solve
the problem for example this way:
return 0 unless ($resp_msg =~ '^PONG');
Regards
Tony
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.