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
This commit is contained in:
Daniel B 2016-04-25 18:13:52 +02:00 committed by Matt Simerson
parent d6be03b37e
commit 9f599f9f47

View File

@ -228,7 +228,7 @@ sub get_reject {
# the naughty plugin will reject later # the naughty plugin will reject later
if ($reject eq 'naughty') { if ($reject eq 'naughty') {
$self->log(LOGINFO, "fail, NAUGHTY" . $log_mess); $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 # they asked for reject, we give them reject