Commit Briefs
set binmode utf8 for the page file handler
avoids the "Wide character in print at ./mkindex line 152, <> line 2751" warnings.
fix last sender name/date in the index
pick up the *latest* From/Date for the indexes, not what happened to be the last mail rendered in that thread. spotted by stsp@
urlencode the mail/thread id
reminded by semarie@, thanks!
use File::Temp for the index pages; specify why it's not using tmppath
we can't use the tmppath pledge promise as File::Temp checks whether /tmp exists. We could unveil("/tmp", "r") and use `tmppath', but it seem misleading. (noticed after semarie@ reminded me of `tmppath')
create temp files in /tmp and don't allow writes to "."
there's little point to use pledge/unveil and then allow the program to modify itself...