ietf-822
[Top] [All Lists]

Re: Last Call: 'The APPLICATION/MBOX Media-Type' to Proposed Standard

2004-08-29 19:01:38

Tony Hansen writes:
Whether parsing mboxcl2 takes "much" more code than parsing mboxrd is a 
subjective measurement.

Here's complete awk code to count the number of messages in an mbox,
assuming mboxrd (or mboxo) format:

   awk '/^From / { ++sum } END { print sum }'

Please show us your code to do the same thing with mboxcl2.

Remember that, if you don't check Content-Length, you'll sometimes break
messages at the wrong place. Also remember that Content-Length can be
capitalized and spaced strangely, maybe even across lines.

---D. J. Bernstein, Associate Professor, Department of Mathematics,
Statistics, and Computer Science, University of Illinois at Chicago


<Prev in Thread] Current Thread [Next in Thread>