Commits


add search.html template msearchd will also make use of it.


move thrslice to GotMARC.pm and add it hidden in thread_header


link /search and add a form in the index pages


drop unnecessary unveil(".", "r") These programs don't need to read files in the current directory: GotMArc loads in memory some files at load time, at that point no other accesses to "." are needed.


dedup thread entry generation code


change GotMArc::parse to take the line instead of $_


make GotMArc::parse return an hash reference instead of a list of strings


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@


mkindex: show the latest date/sender per thread


urlencode the mail/thread id reminded by semarie@, thanks!


style


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')


state the license on each file


s/entries/threads/g