Commit Briefs


Omar Polo

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.


Omar Polo

dedup thread entry generation code




Omar Polo

set binmode utf8 for the page file handler

avoids the "Wide character in print at ./mkindex line 152, <> line 2751" warnings.


Omar Polo

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@



Omar Polo

urlencode the mail/thread id

reminded by semarie@, thanks!


Omar Polo

style


Omar Polo

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


Omar Polo

state the license on each file


Omar Polo

s/entries/threads/g



Omar Polo

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...