From 9523d55cd74398ec2fbb9f497b7bd883b83e5ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Tue, 24 Feb 2004 10:31:12 +0000 Subject: [PATCH] reset_transaction is called after disconnect plugins are called so the Transaction objects DESTROY method is called. (Thanks to Robert James Kaes ) git-svn-id: https://svn.perl.org/qpsmtpd/trunk@207 958fd67b-6ff1-0310-b445-bb7760255be9 --- Changes | 4 ++++ lib/Qpsmtpd/SMTP.pm | 1 + 2 files changed, 5 insertions(+) diff --git a/Changes b/Changes index d0c8cd7..45b6d99 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ 0.27 + reset_transaction is called after disconnect plugins are called so + the Transaction objects DESTROY method is called. (Thanks to Robert + James Kaes ) + Made the SpamAssassin plugin work with SA 2.6+ (thanks to numerous contributors, thanks everyone!). Note that for now it's not including the Spam: headers with the score explained. For that use diff --git a/lib/Qpsmtpd/SMTP.pm b/lib/Qpsmtpd/SMTP.pm index e415a30..d344a5f 100644 --- a/lib/Qpsmtpd/SMTP.pm +++ b/lib/Qpsmtpd/SMTP.pm @@ -320,6 +320,7 @@ sub quit { sub disconnect { my $self = shift; $self->run_hooks("disconnect"); + $self->reset_transaction; } sub data {