Skip to content

Commit

Permalink
Alter requeue logic for MSDiskStore.pm (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawniverson authored Nov 15, 2021
1 parent 02faca0 commit cdbb39a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.4.2-1
5.4.2-2
5 changes: 5 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -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)
==================================

Expand Down
10 changes: 3 additions & 7 deletions common/usr/share/MailScanner/perl/MailScanner/MSDiskStore.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cdbb39a

Please sign in to comment.