From 5f9aed1162aef9570a8e29fa87e9cfc899d8f3a2 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Sat, 23 Mar 2013 00:51:00 -0400 Subject: [PATCH] adjust_karma now increments properly --- lib/Qpsmtpd/Plugin.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Qpsmtpd/Plugin.pm b/lib/Qpsmtpd/Plugin.pm index 3bb4b73..6d8e1c1 100644 --- a/lib/Qpsmtpd/Plugin.pm +++ b/lib/Qpsmtpd/Plugin.pm @@ -287,7 +287,8 @@ sub adjust_karma { my $karma = $self->connection->notes('karma') || 0; $karma += $value; - $self->connection->notes('karma', $value); + $self->log(LOGDEBUG, "karma adjust: $value ($karma)"); + $self->connection->notes('karma', $karma); return $value; };