Add field for the protective order designation on CSV output.

This commit is contained in:
Bradley M. Kuhn 2023-06-03 07:10:13 -07:00
parent 8fc1f5371f
commit beafad9259

View file

@ -76,7 +76,8 @@ my $csvLogFile = File::Spec->rel2abs(catfile($OUTPUT_TOPLEVEL_DIR, "${GROUP}-log
UsageAndExit("\"$csvLogFile\" cannot already exist! Do not attempt to number the same group twice!")
if (-e $csvLogFile);
my @headerFields = ('UNIQUE PRODUCTION IDENTIFER (UPI) #', 'FILE NAME', 'RFP # TO WHICH FILE IS RESPONSIVE');
my @headerFields = ('UNIQUE PRODUCTION IDENTIFER (UPI) #', 'FILE NAME', 'RFP # TO WHICH FILE IS RESPONSIVE',
'PROTECTIVE ORDER CATEGORY');
if ($GROUP_NAMES_BY_DIR{$GROUP} eq 'PRIVILEGE') {
@headerFields = ('UNIQUE PRODUCTION IDENTIFER (UPI) #', 'FROM NAME', 'FROM ADDRESS',
@ -139,7 +140,7 @@ sub ProcessMailDir($$$) {
UnixDate("%D", $parsed{Date}), $parsed{ToName}, $parsed{ToAddr},
$parsed{CcName}, $parsed{CcAddr}, "", $GROUP ]);
} else {
push(@CSV_OUTPUT_ROWS, [ $upiFull, $fileName, uc($rfp) ]);
push(@CSV_OUTPUT_ROWS, [ $upiFull, $fileName, uc($rfp), $GROUP ]);
}
my $copiedFile = catfile($outputDir, $fileName);
copy($msgFile, $copiedFile);