You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2004/12/16 20:00:11 UTC
Re: svn commit: r122529 - /spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
felicity@apache.org writes:
> Author: felicity
> Date: Wed Dec 15 22:25:05 2004
> New Revision: 122529
>
> URL: http://svn.apache.org/viewcvs?view=rev&rev=122529
> Log:
> got a syntax error doing reporting. also, no point in doing regexp since we're looking for explicit strings, just use eq.
what about the newline?
- --j.
> Modified:
> spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm
>
> Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm
> Url:
> http://svn.apache.org/viewcvs/spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm?view=diff&rev=122529&p1=spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm&r1=122528&p2=spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm&r2=122529
> ==============================================================================
> --- spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm (original)
> +++ spamassassin/trunk/lib/Mail/SpamAssassin/Reporter.pm Wed Dec 15 22:25:05 2004
> @@ -239,9 +239,9 @@
>
> if ($err) {
> alarm $oldalarm;
> - if ($err =~ /^__alarm__$/) {
> + if ($err eq '__alarm__') {
> dbg("reporter: pyzor report timed out after $timeout seconds");
> - } elsif ($err /^__brokenpipe__$/) {
> + } elsif ($err eq '__brokenpipe__') {
> dbg("reporter: pyzor report failed: broken pipe");
> } else {
> warn("reporter: pyzor report failed: $err\n");
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Exmh CVS
iD8DBQFBwds7MJF5cimLx9ARAii3AJ9P6ssd2Qbh47kImDy0Ns0w01wxpACeP374
DEDBV1jX/5zg4+qO3fgxCgI=
=uN5K
-----END PGP SIGNATURE-----