]> Sergey Matveev's repositories - public-inbox.git/commit
use MdirReader in -watch and InboxWritable
authorEric Wong <e@80x24.org>
Tue, 9 Feb 2021 08:09:33 +0000 (07:09 -0100)
committerEric Wong <e@80x24.org>
Wed, 10 Feb 2021 06:59:07 +0000 (06:59 +0000)
commitfa3f0cbcd1af5008e56c77e3c46ab60b5eca3a13
tree318cbf3b843d0a33829ecf1fbb6c8becbe0b719e
parentcf3d02714d560cfeab1c5582ad2e5a11542cd649
use MdirReader in -watch and InboxWritable

MdirReader now handles files in "$MAILDIR/new" properly and
is stricter about what it accepts.  eml_from_path is also
made robust against FIFOs while eliminating TOCTOU races with
between stat(2) and open(2) calls.
MANIFEST
lib/PublicInbox/InboxWritable.pm
lib/PublicInbox/MdirReader.pm
lib/PublicInbox/Watch.pm
t/mdir_reader.t [new file with mode: 0644]