Correct UnixDate() call.
Arguments were out of order, first of all, but also we might as well add a check to verify that if it's empty and put "N/A" there if nothing is there.
This commit is contained in:
parent
ea04654b7f
commit
cdcf26f8fa
1 changed files with 4 additions and 2 deletions
|
@ -168,9 +168,11 @@ sub ProcessMailDir($$$) {
|
|||
UnixDate($parsed{Date}, '%Y%m%d-%H%M-') . $subjectDashes . '.eml';
|
||||
die "$fileName has no subject" if not defined $parsed{Subject};
|
||||
if ($GROUP_NAMES_BY_DIR{$GROUP} eq 'PRIVILEGED') {
|
||||
my $dateFormatted = UnixDate($parsed{Date}, "%D");
|
||||
$dateFormatted = "N/A" if not defined $dateFormatted or $dateFormatted =~ /^\s*$/;
|
||||
push(@CSV_OUTPUT_ROWS, [ $upiFull, $parsed{FromName}, $parsed{FromAddr}, $parsed{Subject},
|
||||
UnixDate("%D", $parsed{Date}), $parsed{ToName}, $parsed{ToAddr},
|
||||
$parsed{CcName}, $parsed{CcAddr}, "", $GROUP ]);
|
||||
$dateFormatted, $parsed{ToName}, $parsed{ToAddr},
|
||||
$parsed{CCName}, $parsed{CCAddr}, "", $GROUP ]);
|
||||
} else {
|
||||
push(@CSV_OUTPUT_ROWS, [ $upiFull, $fileName, uc($rfp), $GROUP_NAMES_BY_DIR{$GROUP} ]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue