[pmg-devel] [PATCH pmg-api] fix #1679: do not delete old quarantine mails on cluster creation/join

Dominik Csapak d.csapak at proxmox.com
Thu Mar 1 16:56:53 CET 2018


we did cleanup the non-clustered spool dirs for the quarantines
which meant that if you create a cluster, all quarantine mails
before that point are deleted, but not removed from the database

instead leave the spool dir where it is, so they can be viewed at
least from the node where they got quarantined

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PMG/API2/Cluster.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PMG/API2/Cluster.pm b/PMG/API2/Cluster.pm
index 1fe0ba3..40e329e 100644
--- a/PMG/API2/Cluster.pm
+++ b/PMG/API2/Cluster.pm
@@ -59,7 +59,7 @@ sub cluster_join {
 
 	my $cid = $cinfo->{'local'}->{cid};
 
-	PMG::MailQueue::create_spooldirs($cid, 1);
+	PMG::MailQueue::create_spooldirs($cid);
 
 	PMG::Cluster::sync_config_from_master($cinfo->{master}->{name}, $cinfo->{master}->{ip});
 
@@ -368,7 +368,7 @@ __PACKAGE__->register_method({
 
 		PMG::DBTools::init_masterdb($cid);
 
-		PMG::MailQueue::create_spooldirs($cid, 1);
+		PMG::MailQueue::create_spooldirs($cid);
 
 		print STDERR "cluster master successfully created\n";
 	    };
-- 
2.11.0




More information about the pmg-devel mailing list