mh: fix burst, provide test cases.
* mh/burst.c (burst_stream): New struct. (finish_stream): Change signature. Keep track of current part number and flags. (flush_stream): Rewrite. (burst_digest): Remove extra buffering code. Rely on the stream buffering instead. Fixed length-based EB detection. Return 0 if the message was bursted successfully, 1 if it is not in digest format. (burst_or_copy): Revert the condition on burst_digest. * tests/burst.at: New test. * tests/Makefile.am (TESTSUITE_AT): Add burst.at * tests/testsuite.at: Include burst.at
Showing
4 changed files
with
319 additions
and
56 deletions
mh/tests/burst.at
0 → 100644
-
Please register or sign in to post a comment