From 9f599f9f47abc44d87bcd602932da07e55094c51 Mon Sep 17 00:00:00 2001 From: Daniel B Date: Mon, 25 Apr 2016 18:13:52 +0200 Subject: [PATCH] Record the name of the original plugin (#256) When using the naughty plugin to defer rejection, we loose the name of the original plugin which caused the reject. Especially when we parse the logterse plugin output to build graphs. With this addition, we now can get this information back --- lib/Qpsmtpd/Plugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Qpsmtpd/Plugin.pm b/lib/Qpsmtpd/Plugin.pm index d339696..50d1917 100644 --- a/lib/Qpsmtpd/Plugin.pm +++ b/lib/Qpsmtpd/Plugin.pm @@ -228,7 +228,7 @@ sub get_reject { # the naughty plugin will reject later if ($reject eq 'naughty') { $self->log(LOGINFO, "fail, NAUGHTY" . $log_mess); - return $self->store_deferred_reject($smtp_mess); + return $self->store_deferred_reject('(' .$self->plugin_name . ') ' . $smtp_mess); } # they asked for reject, we give them reject