Commit Diff
Commit:
a0b4d4b33ad4f49df0be56f40c6472f8912aafd8
From:
Omar Polo <op@omarpolo.com>
Date:
Sat Aug 27 06:58:59 2022 UTC
Message:
compute the date ranges over top level threads entry
commit - add05cb0fcb8d6607f38e611e033bb90bdaa4a05
commit + a0b4d4b33ad4f49df0be56f40c6472f8912aafd8
blob - 748b2a96c9ea55a4f3d36f49c80f78a4a973b182
blob + c299b4d794f29656c7226a087f5f9cbc2ee5b7bf
--- mkindex
+++ mkindex
@@ -189,7 +189,6 @@ while (<>) {
while (<>) {
my ($level, $fname, $mid, $date, $from, $subj) = parse;
- my $day = $date =~ s/ .*//r;
if ($level == 0) {
nextthread $mid, $subj;
@@ -201,12 +200,14 @@ while (<>) {
$to_day = undef;
$from_day = undef;
}
+
+ my $day = $date =~ s/ .*//r;
+ $to_day = mins $day, $to_day;
+ $from_day = maxs $day, $from_day;
+
entry $pfh, "thread", $mid, $date, $from, $subj;
}
- $to_day = mins $day, $to_day;
- $from_day = maxs $day, $from_day;
-
thread_entry($tfh, $mid, $level, $date, $from, $subj);
$last_level = $level;
$threads_seen = 1;
Omar Polo