commit 9be16529762ce73397c514c8b5527464353c74e2 from: Omar Polo date: Wed Aug 24 15:20:17 2022 UTC move the html version of the mail under mail/ commit - cef2c4158bfc0b4949e0540cf0c262fa73b017f1 commit + 9be16529762ce73397c514c8b5527464353c74e2 blob - 93e7723ddcb6b0678fd9a2fd9073a8009f4a4a08 blob + d3504699261e0d94e0c572c7362da74971676e5e --- Makefile +++ Makefile @@ -14,6 +14,7 @@ gzip: gzip -fkr ${OUTDIR}/ dirs: + mkdir -p ${OUTDIR}/mail/ mkdir -p ${OUTDIR}/mbox/ mkdir -p ${OUTDIR}/parts/ mkdir -p ${OUTDIR}/text/ blob - 8993cb3820ad9d107820e20ff24e814ea203c434 blob + ee0199436c9815353374f0f348ee48945b275087 --- mexp +++ mexp @@ -74,7 +74,8 @@ while (<>) { chomp($mid); - next if -f "$outdir/$mid.html"; + my $dest = "$outdir/mail/$mid.html"; + next if -f $dest; my $level = length($indent) - 1; $level = 10 if $indent =~ m/\.\.\d{2}\.\./; @@ -83,7 +84,6 @@ while (<>) { genmbox($fname, $mid); - my $dest = "$outdir/$mid.html"; open(my $fh, '>', "$dest") or die "can't open $dest: $!"; say $fh $hdr =~ s/TITLE/$subj/r; blob - a4d9a81ec470dc6b38dba50046a191fcf2fa97ac blob + 551438bad185c43c16f48ebab0b5ccd0fc3f5a69 --- mkindex +++ mkindex @@ -167,7 +167,7 @@ sub entry_raw { } print $fh "

"; print $fh "

"; - print $fh "$subj"; + print $fh "$subj"; print $fh "

"; print $fh "\n"; }