- summary: AMaViS-ng leaves stale unpack files remote MTA disconnects. --> AMaViS-ng - stale unpack files when remote MTA disconnects.
During an SMTP session using Qmail as the local MTA, if
the remote MTA closes the SMTP connection before
finishing delivery, Amavis will fail to clean up the
directory it has created in the get_directory function.
Patch included below.
--- Qmail.pm.dist Mon Mar 17 17:04:21 2003
+++ Qmail.pm Thu Mar 11 09:43:55 2004
@@ -79,6 +79,7 @@
}
$$args{'message_id'}=$message_id;
my $directory = $prefix.$message_id;
+ $$args{'directory'} = $directory;
mkdir "$directory/parts", 0777;
my $message_handle = IO::Handle->new();
@@ -150,7 +151,7 @@
$output->seek(0,0);
$$args{'filehandle'} = $output;
- $$args{'directory'} = $directory;
+# $$args{'directory'} = $directory;
# Return successfully
return 1;