Fix broken-in-queue messages predating CHUNKING fix
authorPhil Pennock <pdp@exim.org>
Wed, 15 Feb 2017 03:22:17 +0000 (22:22 -0500)
committerPhil Pennock <pdp@exim.org>
Wed, 15 Feb 2017 03:25:40 +0000 (22:25 -0500)
commit7dc5f827a629b06afcba5a1a52184084c5214c98
treec9c0ec0cb408c6a41fc16617563d0da4cace1fbb
parent544dd905b208164eaae771ab6d2a198b4c67aa0c
Fix broken-in-queue messages predating CHUNKING fix

util/chunking_fixqueue_finalnewlines.pl walks the queue, fixing any
affected messages; see README.UPDATING.

We're extremely cautious about operation failure.

We do one check without locking messages, so that we can quickly skip
past before trying to lock and contending with an actual delivery.  Then
we lock and do another fix.

Note that we use flock, not fcntl, because that's what Perl makes
readily available; we use an OS-guard to barf if the OS is not handled.
doc/doc-txt/ChangeLog
src/README.UPDATING
src/util/chunking_fixqueue_finalnewlines.pl [new file with mode: 0755]