add tests, and fix parsing of mail without body
fix header parsing, more tests

previously spaces in headers were allowed, because the whitespace in <-[: ]>
is not significant.
Also adds some tests.