mirror of
https://github.com/MailScanner/v5.git
synced 2024-09-20 07:16:10 +08:00
Alter requeue logic for MSDiskStore.pm (#568)
This commit is contained in:
parent
02faca0545
commit
cdbb39a32f
|
@ -1,3 +1,8 @@
|
|||
11/14/2021 Changes in v5.4.2-2 (beta)
|
||||
==================================
|
||||
|
||||
- Eliminate queue id change in MSDiskStore.pm
|
||||
|
||||
11/14/2021 Changes in v5.4.2-1 (beta)
|
||||
==================================
|
||||
|
||||
|
|
|
@ -335,14 +335,10 @@ sub WriteHeader {
|
|||
MailScanner::Lock::unlockclose($Tf);
|
||||
undef $Tf; # Try to ensure Tf is completely closed, flushed, everything
|
||||
|
||||
my $hdoutfile;
|
||||
my $hddirbase;
|
||||
($hddirbase, $hdoutfile) =
|
||||
MailScanner::Sendmail::HDOutFileName($tfile);
|
||||
rename "$tfile", "$hddirbase/$hdoutfile"
|
||||
rename "$tfile", $Outq . '/' . $message->{id}
|
||||
or MailScanner::Log::DieLog("Cannot rename clean %s to %s, %s",
|
||||
$tfile, $hdoutfile, $!);
|
||||
MailScanner::Log::InfoLog("Requeue: %s to %s", $message->{id},$hdoutfile);
|
||||
$tfile, $message->{id}, $!);
|
||||
MailScanner::Log::InfoLog("Requeue: %s to %s", $message->{id},$message->{id});
|
||||
}
|
||||
|
||||
# Return the size of the message (Header+body)
|
||||
|
|
Loading…
Reference in a new issue